246339ce01898c92ce9e143895c5def9c46dcb78,skopt/dummy_opt.py,,dummy_minimize,#Any#Any#Any#Any#,9
Before Change
rng = check_random_state(random_state)
n_params = len(bounds)
lb, ub = extract_bounds(bounds)
X = lb + (ub - lb) * rng.rand(maxiter, n_params)
init_y = func(X[0])
if not np.isscalar(init_y):
After Change
http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.OptimizeResult.html
rng = check_random_state(random_state)
space = Space(dimensions)
X = space.rvs(n_samples=maxiter, random_state=rng)
init_y = func(X[0])
if not np.isscalar(init_y):
raise ValueError(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: scikit-optimize/scikit-optimize
Commit Name: 246339ce01898c92ce9e143895c5def9c46dcb78
Time: 2016-06-14
Author: g.louppe@gmail.com
File Name: skopt/dummy_opt.py
Class Name:
Method Name: dummy_minimize
Project Name: scikit-optimize/scikit-optimize
Commit Name: 246339ce01898c92ce9e143895c5def9c46dcb78
Time: 2016-06-14
Author: g.louppe@gmail.com
File Name: skopt/gp_opt.py
Class Name:
Method Name: gp_minimize
Project Name: scikit-optimize/scikit-optimize
Commit Name: 0a60b2d2807cf370e984b0bd9f7c4d0edabe4267
Time: 2016-06-14
Author: g.louppe@gmail.com
File Name: skopt/gbrt_opt.py
Class Name:
Method Name: gbrt_minimize