be24159959672c32abb31697e721d96ae6ffaf97,keras/wrappers/scikit_learn.py,KerasRegressor,predict,#KerasRegressor#Any#,229

Before Change


        preds : array-like, shape = (n_samples)
            Predictions.
        
        return self.compiled_model_.predict(
            X, batch_size=self.test_batch_size, verbose=self.verbose).ravel()

    def score(self, X, y):
        
        Returns the mean accuracy on the given test data and labels.

After Change


                Predictions.
        """
        kwargs = self.filter_sk_params(Sequential.predict, kwargs)
        return self.model.predict(X, **kwargs)

    def score(self, X, y, **kwargs):
        """Returns the mean accuracy on the given test data and labels.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: KerasRegressor
Method Name: predict


Project Name: deepchem/deepchem
Commit Name: 3600c23f6c7e20ac9492f1dd3604019b933923d6
Time: 2016-04-26
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/sklearn_models/__init__.py
Class Name: SklearnModel
Method Name: fit


Project Name: yzhao062/pyod
Commit Name: fbdbf4de743519da4c794c9f87467b903f5194a6
Time: 2018-09-03
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/auto_encoder.py
Class Name: AutoEncoder
Method Name: decision_function