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

Before Change



            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



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

        // lbfgs should handle this but just in case there are precision errors.
        next_x = np.clip(
            next_x, transformed_bounds[:, 0], transformed_bounds[:, 1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: timvieira/arsenal
Commit Name: 6fae95e5f69d9e111d927790b6e48f9debce1b7d
Time: 2012-01-23
Author: tim.f.vieira@gmail.com
File Name: plot/data_browser.py
Class Name: PointBrowser
Method Name: onpick