0a60b2d2807cf370e984b0bd9f7c4d0edabe4267,skopt/gbrt_opt.py,,gbrt_minimize,#Any#Any#Any#Any#Any#Any#Any#,24

Before Change



    // Bounds
    num_params = len(bounds)
    lower_bounds, upper_bounds = extract_bounds(bounds)

    // Default estimator
    if base_estimator is None:

After Change


        http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.OptimizeResult.html
    
    rng = check_random_state(random_state)
    space = Space(dimensions)

    // Default estimator
    if base_estimator is None:
        base_estimator = GradientBoostingQuantileRegressor(random_state=rng)

    // Record the points and function values evaluated as part of
    // the minimization
    Xi = np.zeros((maxiter, space.n_dims))
    yi = np.zeros(maxiter)

    // Initialize with random points
    if n_start == 0:
        raise ValueError("Need at least one starting point.")

    if maxiter == 0:
        raise ValueError("Need to perform at least one iteration.")

    n_start = min(n_start, maxiter)

    Xi[:n_start] = space.rvs(n_samples=n_start, random_state=rng)
    yi[:n_start] = [func(xi) for xi in Xi[:n_start]]
    i = np.argmin(yi[:n_start])
    best_y = yi[i]
    best_x = Xi[i]

    models = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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


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: 961d987281220a51985b670f86eac922e9c486bc
Time: 2016-06-14
Author: g.louppe@gmail.com
File Name: skopt/tests/test_space.py
Class Name:
Method Name: test_simple_space