3140a57326e533548df00f0f128cd356932d400b,thinc/neural/_classes/model.py,Model,__init__,#Model#,50

Before Change


        if self.ops is None:
            self.ops = util.get_ops(self.device)
        self._root = kwargs.get("root", self)
        self._parent = kwargs.get("parent", None)
        if self._parent is not None:
            self.name = self._parent.name + "-" + self.name
        self.params = self.Params(self.ops)

After Change


        self._layers = []
        self._operators = {}
        for name in self.desc.dimensions:
            if not hasattr(self, name):
                setattr(self, name, None)
        self.desc.dimensions.set_from_init(self.args)

    def begin_training(self, train_X, train_Y):
        set_dimensions_given_data(self, train_X, train_Y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: explosion/thinc
Commit Name: 3140a57326e533548df00f0f128cd356932d400b
Time: 2017-01-11
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/model.py
Class Name: Model
Method Name: __init__


Project Name: enthought/chaco
Commit Name: 1dc7dd188126b5132e0927f08c8dc553a1aff8d4
Time: 2010-11-19
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/tools/scatter_inspector.py
Class Name: ScatterInspector
Method Name: _get_selection_state


Project Name: BindsNET/bindsnet
Commit Name: 54ad58d10cb8a0d96507e075cdc26730b9e86e7f
Time: 2019-04-01
Author: danjsaund@gmail.com
File Name: bindsnet/learning/__init__.py
Class Name: MSTDP
Method Name: _connection_update