f3cdb3e031b20e246aaf17d631decd87d2a38db3,skopt/optimizer/optimizer.py,Optimizer,tell,#Optimizer#,165

Before Change


            // and the best minimum is used
            elif self.acq_optimizer == "lbfgs":
                best = np.inf
                x0 = self.space.transform(
                    self.space.rvs(n_samples=self.n_restarts_optimizer,
                                   random_state=self.rng))

                with warnings.catch_warnings():
                    warnings.simplefilter("ignore")
                    jobs = (delayed(fmin_l_bfgs_b)(
                        gaussian_acquisition_1D, x,
                        args=(est, np.min(self.yi), self.acq_func,
                              self.xi, self.kappa),
                        bounds=self.space.transformed_bounds,
                        approx_grad=False,
                        maxiter=20) for x in x0)
                    results = self.parallel(jobs)

                cand_xs = np.array([r[0] for r in results])
                cand_acqs = np.array([r[1] for r in results])
                best_ind = np.argmin(cand_acqs)
                a = cand_acqs[best_ind]

                if a < best:
                    next_x, best = cand_xs[best_ind], a

After Change


            // minimization starts from `n_restarts_optimizer` different points
            // and the best minimum is used
            elif self.acq_optimizer == "lbfgs":
                x0 = X[np.argsort(values)[:self.n_restarts_optimizer]]

                with warnings.catch_warnings():
                    warnings.simplefilter("ignore")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: f3cdb3e031b20e246aaf17d631decd87d2a38db3
Time: 2017-01-10
Author: betatim@gmail.com
File Name: skopt/optimizer/optimizer.py
Class Name: Optimizer
Method Name: tell


Project Name: scikit-optimize/scikit-optimize
Commit Name: fa6ccd7f25e838d964d3e8249a7d8a2f622581b8
Time: 2017-08-04
Author: betatim@gmail.com
File Name: skopt/optimizer/optimizer.py
Class Name: Optimizer
Method Name: tell


Project Name: scikit-optimize/scikit-optimize
Commit Name: e35fde3696c0c158f67dd125ac512ea6d67b889c
Time: 2017-01-03
Author: mks542@nyu.edu
File Name: skopt/optimizer/base.py
Class Name:
Method Name: base_minimize