ced84c4b42d9186842e4cad6c11b0c8f2c18439b,keras/wrappers/scikit_learn.py,BaseWrapper,check_params,#BaseWrapper#Any#,59

Before Change


        legal_params = set(legal_params)

        for params_name in params:
            if params_name not in legal_params:
                if params_name != "nb_epoch":
                    raise ValueError(
                        "{} is not a legal parameter".format(params_name))

    def get_params(self, **params):
        Gets parameters for this estimator.

        // Arguments

After Change



        for params_name in params:
            for fn in legal_params_fns:
                if has_arg(fn, params_name):
                    break
            else:
                if params_name != "nb_epoch":
                    raise ValueError(
                        "{} is not a legal parameter".format(params_name))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: ced84c4b42d9186842e4cad6c11b0c8f2c18439b
Time: 2017-06-16
Author: chris.kerr@athion.de
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: check_params


Project Name: ray-project/ray
Commit Name: 2cb9cfb2b6b1d2b5a14b543310761d64b76b8508
Time: 2020-04-12
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/http_proxy.py
Class Name: HTTPProxy
Method Name: __call__


Project Name: keras-team/keras
Commit Name: 04a20177cf332004a291cee626c20a0262427796
Time: 2017-06-21
Author: chris.kerr@athion.de
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: check_params