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


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

        key = str(param_space)

        if key not in self.optimizer:
            self.optimizer[key] =  self._make_optimizer(param_space)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: pytorch/benchmark
Commit Name: 5f1f52b07ff387bef8daf6ea1b378548de9ccab4
Time: 2020-09-14
Author: zdevito@fb.com
File Name: torchbenchmark/models/tacotron2/utils.py
Class Name:
Method Name: load_filepaths_and_text


Project Name: kbardool/keras-frcnn
Commit Name: 1427fdcab8d2a20a9181e3eb391c01b8da225761
Time: 2020-03-25
Author: s0535440@htw-berlin.de
File Name: measure_map.py
Class Name:
Method Name: