00cce06892217b891c8a85ead8c51b28d556bd64,skopt/tree_opt.py,,_tree_minimize,#,25
Before Change
print("Function value obtained: %0.4f" % curr_y)
print("Current minimum: %0.4f" % np.min(yi))
res = OptimizeResult()
best = np.argmin(yi)
res.x = Xi[best]
res.fun = yi[best]
res.func_vals = np.array(yi)
res.x_iters = Xi
res.models = models
res.space = space
res.random_state = rng
return res
def gbrt_minimize(func, dimensions, base_estimator=None, n_calls=100,
n_points=1000, n_random_starts=10, x0=None, y0=None,
After Change
print("Current minimum: %0.4f" % np.min(yi))
if callback is not None:
callback(pack_optimize_result(
x0 + X_rand[:i + 1] , yi, space, rng, specs))
if np.ndim(yi) != 1:
raise ValueError("`func` should return a scalar")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 22
Instances Project Name: scikit-optimize/scikit-optimize
Commit Name: 00cce06892217b891c8a85ead8c51b28d556bd64
Time: 2016-08-08
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/tree_opt.py
Class Name:
Method Name: _tree_minimize
Project Name: scikit-optimize/scikit-optimize
Commit Name: 00cce06892217b891c8a85ead8c51b28d556bd64
Time: 2016-08-08
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/tree_opt.py
Class Name:
Method Name: _tree_minimize
Project Name: scikit-optimize/scikit-optimize
Commit Name: 00cce06892217b891c8a85ead8c51b28d556bd64
Time: 2016-08-08
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/gp_opt.py
Class Name:
Method Name: gp_minimize
Project Name: scikit-optimize/scikit-optimize
Commit Name: 00cce06892217b891c8a85ead8c51b28d556bd64
Time: 2016-08-08
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/dummy_opt.py
Class Name:
Method Name: dummy_minimize