be24159959672c32abb31697e721d96ae6ffaf97,keras/wrappers/scikit_learn.py,BaseWrapper,fit,#BaseWrapper#Any#Any#,97

Before Change


            Returns details about the training history at each epoch.
        
        if len(y.shape) == 1:
            self.classes_ = list(np.unique(y))
            if self.loss == "categorical_crossentropy":
                y = to_categorical(y)
        else:
            self.classes_ = np.arange(0, y.shape[1])

After Change



        if self.build_fn is None:
            self.model = self.__call__(**self.filter_sk_params(self.__call__))
        elif not isinstance(self.build_fn, types.FunctionType):
            self.model = self.build_fn(
                **self.filter_sk_params(self.build_fn.__call__))
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: be24159959672c32abb31697e721d96ae6ffaf97
Time: 2016-02-27
Author: ipod825@gmail.com
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: fit


Project Name: mne-tools/mne-python
Commit Name: 717eedd5f9ce22431e40a15c378863de6730d3e8
Time: 2019-03-15
Author: larson.eric.d@gmail.com
File Name: mne/viz/raw.py
Class Name:
Method Name: _update_raw_data


Project Name: automl/auto-sklearn
Commit Name: 9d0ed839dc9df4c9afc5966c1e3276c478a58d53
Time: 2020-09-16
Author: feurerm@informatik.uni-freiburg.de
File Name: scripts/update_metadata_util.py
Class Name:
Method Name: load_task