23a504bb918c07539ed002e06081afae12b5159a,skopt/searchcv.py,BayesSearchCV,fit,#BayesSearchCV#Any#Any#Any#Any#,580

Before Change


        n_jobs = self.n_jobs

        // account for case n_jobs < 0
        if n_jobs < 0:
            n_jobs = max(1, cpu_count() + n_jobs + 1)

        for search_space, optimizer in zip(search_spaces, optimizers):
            // if not provided with search subspace, n_iter is taken as
            // self.n_iter
            if isinstance(search_space, tuple):

After Change


            while n_iter > 0:
                // when n_iter < n_jobs points left for evaluation
                n_points_adjusted = min(n_iter, n_points)
                print(n_points_adjusted)

                optim_result = self._step(
                    X, y, search_space, optimizer,
                    groups=groups, n_points=n_points_adjusted
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 23a504bb918c07539ed002e06081afae12b5159a
Time: 2018-02-06
Author: rene.rex@kws.com
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: fit


Project Name: deepinsight/insightface
Commit Name: eb6aea6e708e0fd87ca6e168a88c60a6fad570c9
Time: 2018-07-09
Author: guojia@gmail.com
File Name: SSH/test.py
Class Name:
Method Name:


Project Name: deepinsight/insightface
Commit Name: 74cdf6d00ff239ea6559812fa157bd138e2578cb
Time: 2018-07-09
Author: guojia@gmail.com
File Name: SSH/test.py
Class Name:
Method Name: