8f8d6d48c60407fcd741eaa18199b71a3ac7a381,skopt/searchcv.py,BayesSearchCV,fit,#BayesSearchCV#,554
Before Change
if n_jobs < 0:
n_jobs = max(1, cpu_count() + n_jobs + 1)
for space_id in range(len(self.search_spaces_)):
elem = self.search_spaces_[space_id]
// if not provided with search subspace, n_iter is taken as
// self.n_iter
if isinstance(elem, tuple):
space, n_iter = elem
else:
n_iter = self.n_iter
// do the optimization for particular search space
while n_iter > 0:
// when n_iter < n_jobs points left for evaluation
n_jobs_adjusted = min(n_iter, n_jobs)
self._step(
X, y, space_id,
groups=groups, n_jobs=n_jobs_adjusted
)
n_iter -= n_jobs
// fit the best model if necessary
if self.refit:
self._fit_best_model(X, y)
return self
After Change
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: scikit-optimize/scikit-optimize
Commit Name: 8f8d6d48c60407fcd741eaa18199b71a3ac7a381
Time: 2017-11-11
Author: franck@sancare.fr
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: fit
Project Name: erikbern/ann-benchmarks
Commit Name: c6418175813007be62406bfb35b42441202b017a
Time: 2018-03-03
Author: maau@itu.dk
File Name: create_website.py
Class Name:
Method Name: get_latex_plot
Project Name: mittagessen/kraken
Commit Name: 6e6c12425a787d8c954ce5c31ceed59cdd531001
Time: 2018-05-20
Author: mittagessen@l.unchti.me
File Name: kraken/lib/ctc_decoder.py
Class Name:
Method Name: greedy_decoder