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

Before Change


        else:
            legal_params_fns.append(self.build_fn)

        legal_params = []
        for fn in legal_params_fns:
            legal_params += inspect.getargspec(fn)[0]
        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


            legal_params_fns.append(self.build_fn)

        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))

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

        // Arguments
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


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


Project Name: andresriancho/w3af
Commit Name: 3805aabae59e3ba5b16364f6839c8e20b2399d71
Time: 2017-06-29
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/delay_detection/aprox_delay_controller.py
Class Name: AproxDelayController
Method Name: delay_is_controlled


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