03f330f19c923b1fcd23d0db1b6b4c4d063fcf58,skopt/searchcv.py,BayesSearchCV,fit,#BayesSearchCV#,681

Before Change


        self.best_index_ = None
        self.multimetric_ = False

        if len(self.search_spaces_) == 0:
            raise ValueError(
                "Please provide search space using `add_spaces` first before"
                "calling fit method."
            )

After Change



        // Instanciate optimizers for all the search spaces.
        self.optimizer_ = {}
        for space_id in self.search_spaces_.keys():
            self.optimizer_[space_id] = self._make_optimizer(search_spaces)

        self.optimizer_kwargs_ = {} if self.optimizer_kwargs is None else\
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 03f330f19c923b1fcd23d0db1b6b4c4d063fcf58
Time: 2017-11-11
Author: franck@sancare.fr
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: fit


Project Name: invesalius/invesalius3
Commit Name: 65bd8595ba8e39b32ee75771a9e5c182f30d0ae2
Time: 2009-08-27
Author: paulojamorim@gmail.com
File Name: invesalius/gui/widgets/slice_menu.py
Class Name: SliceMenu
Method Name: OnPopup