e35fde3696c0c158f67dd125ac512ea6d67b889c,skopt/optimizer/base.py,,base_minimize,#,30

Before Change



        elif acq_optimizer == "lbfgs":
            best = np.inf
            x0 = space.transform(space.rvs(n_samples=n_restarts_optimizer,
                                           random_state=rng))

            with warnings.catch_warnings():
                warnings.simplefilter("ignore")
                jobs = (delayed(fmin_l_bfgs_b)(
                    gaussian_acquisition_1D, x,
                    args=(gp, np.min(yi), acq_func, xi, kappa),
                    bounds=space.transformed_bounds,
                    approx_grad=False,
                    maxiter=20) for x in x0)
                results = 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

        // lbfgs should handle this but just in case there are precision errors.
        next_x = np.clip(

After Change


            next_x = X[np.argmin(values)]

        elif acq_optimizer == "lbfgs":
            x0 = X[np.argsort(values)[:n_restarts_optimizer]]

            with warnings.catch_warnings():
                warnings.simplefilter("ignore")
                jobs = (delayed(fmin_l_bfgs_b)(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


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


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: WheatonCS/Lexos
Commit Name: 70fcd3094baba3139afcda727683d58c2928261f
Time: 2017-08-04
Author: liu_xinru@wheatoncollege.edu
File Name: lexos/processors/analyze/similarity.py
Class Name:
Method Name: similarity_maker


Project Name: WheatonCS/Lexos
Commit Name: ce5da48b8586d7cfdb392b8cad1988e6bfdd17d5
Time: 2017-08-03
Author: liu_xinru@wheatoncollege.edu
File Name: lexos/processors/analyze/similarity.py
Class Name:
Method Name: similarity_maker