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


        fit_args = copy.deepcopy(self.filter_sk_params(Sequential.fit))
        fit_args.update(kwargs)

        history = self.model.fit(X, y, **fit_args)

        return history

    def filter_sk_params(self, fn, override={}):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: nilearn/nilearn
Commit Name: 13482b28622840a153162b4c070bffdf05d51d38
Time: 2012-08-21
Author: alexandre.abraham@cea.fr
File Name: plot_haxby_searchlight.py
Class Name:
Method Name:


Project Name: dask/dask-ml
Commit Name: 8f49b9dc1d67c01b005ebd8ead16d709916613da
Time: 2018-07-20
Author: TomAugspurger@users.noreply.github.com
File Name: dask_ml/preprocessing/label.py
Class Name: LabelEncoder
Method Name: fit


Project Name: alexandrebarachant/pyRiemann
Commit Name: 9302d6f56cb836b95e357ed533a3d3aaed4f4016
Time: 2015-05-16
Author: alexandre.barachant@gmail.com
File Name: pyriemann/channelselection.py
Class Name: ElectrodeSelection
Method Name: fit