4d7ff76cfbaf5fb8a57d8f3232c989e8e2c2f5b5,keras/wrappers/scikit_learn.py,KerasClassifier,score,#KerasClassifier#Any#Any#,207

Before Change


        kwargs = self.filter_sk_params(Sequential.evaluate, kwargs)
        kwargs.update({"show_accuracy": True})
        loss, accuracy = self.model.evaluate(X, y, **kwargs)
        return accuracy


class KerasRegressor(BaseWrapper):
    """Implementation of the scikit-learn regressor API for Keras.

After Change


        """
        kwargs = self.filter_sk_params(Sequential.evaluate, kwargs)
        outputs = self.model.evaluate(X, y, **kwargs)
        if type(outputs) is not list:
            outputs = [outputs]
        for name, output in zip(self.model.metrics_names, outputs):
            if name == "acc":
                return output
        raise Exception("The model is not configured to compute accuracy. "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: 4d7ff76cfbaf5fb8a57d8f3232c989e8e2c2f5b5
Time: 2016-04-01
Author: francois.chollet@gmail.com
File Name: keras/wrappers/scikit_learn.py
Class Name: KerasClassifier
Method Name: score


Project Name: ray-project/ray
Commit Name: e356e97eb20caff7dc614d694903254951e914f1
Time: 2020-03-30
Author: sven@anyscale.io
File Name: rllib/evaluation/worker_set.py
Class Name: WorkerSet
Method Name: _make_worker


Project Name: keras-team/keras
Commit Name: 8b3543fca9d811c638bb72d78601c8564f5465fd
Time: 2016-04-03
Author: EderSantana@users.noreply.github.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: batch_dot


Project Name: keras-team/keras
Commit Name: 8b3543fca9d811c638bb72d78601c8564f5465fd
Time: 2016-04-03
Author: EderSantana@users.noreply.github.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: batch_dot