a81db6daadd1304e96916c34a894d83dd4dc75bd,skopt/wrappers/scikit_learn.py,SkoptSearchCV,step,#SkoptSearchCV#,248

Before Change


        cv = skms.check_cv(self.cv, y, classifier=skms.is_classifier(self.estimator))
        self.scorer_ = skms.check_scoring(self.estimator, scoring=self.scoring)

        pd = self.param_distributions

        if self.optimizer is None:
            dimensions = [pd[k] for k in sorted(pd.keys())]
            self.optimizer = Optimizer(dimensions, GaussianProcessRegressor())

        params = self.optimizer.ask()
        params_dict = {k: v for k,v in zip(sorted(pd.keys()), params)}

        cv_iter = list(cv.split(X, y, groups))

After Change



        key = str(param_space)

        if key not in self.optimizer:
            self.optimizer[key] =  self._make_optimizer(param_space)

        optimizer = self.optimizer[key]

        params = optimizer.ask()
        params_dict = self._skopt_to_dict(param_space, params)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: a81db6daadd1304e96916c34a894d83dd4dc75bd
Time: 2017-06-28
Author: iaroslav.email@gmail.com
File Name: skopt/wrappers/scikit_learn.py
Class Name: SkoptSearchCV
Method Name: step


Project Name: commonsense/conceptnet5
Commit Name: f522e894852f28da0d6b9441ce8e49f486dfbc5f
Time: 2017-06-16
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: choose_small_vocabulary


Project Name: ufal/npfl114
Commit Name: c343409098b4f4b8396119d9f26e040e479a0e2b
Time: 2020-04-20
Author: milan@strakovi.com
File Name: labs/08/speech_recognition_eval.py
Class Name:
Method Name:


Project Name: tensorflow/cleverhans
Commit Name: 03f07734648aa9843393f0ebf19c61c2a34c728e
Time: 2019-03-13
Author: haojie.d.yuan@gmail.com
File Name: cleverhans/utils_keras.py
Class Name: KerasModelWrapper
Method Name: fprop