98c3d1f65f075ff960b219afe017cd4cf55bfba7,skopt/gbrt_opt.py,,gbrt_minimize,#,61

Before Change


    // Initialize with a random point
    Xi[0] = _random_point(lower_bounds, upper_bounds, random_state=rng)
    best_x = Xi[0].ravel()
    yi[0] = best_y = func(Xi[0])

    models = []

    // XXX should there be an early stopping criterion?

After Change


    Xi[:n_start] = _random_point(
        lower_bounds, upper_bounds, n_points=n_start, random_state=rng)
    best_x = Xi[:n_start].ravel()
    yi[:n_start] = [func(xi) for xi in (Xi[:n_start])]
    best_y = np.min(yi[:n_start])

    models = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 98c3d1f65f075ff960b219afe017cd4cf55bfba7
Time: 2016-04-19
Author: betatim@gmail.com
File Name: skopt/gbrt_opt.py
Class Name:
Method Name: gbrt_minimize


Project Name: Esri/raster-functions
Commit Name: e0ff7e10a230b0523d0a4796e38957490a05f8f9
Time: 2015-10-19
Author: akferoz@esri.com
File Name: functions/RankFilter.py
Class Name: RankFilter
Method Name: updatePixels


Project Name: rtqichen/torchdiffeq
Commit Name: 7391aec984c1e9e0899d51e6b0538483c37ec8fb
Time: 2020-07-27
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/tsit5.py
Class Name: Tsit5Solver
Method Name: _adaptive_tsit5_step


Project Name: scikit-optimize/scikit-optimize
Commit Name: b095f7a67d569d2ca3a4932e5ac1a8df613d6ce9
Time: 2016-08-08
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/dummy_opt.py
Class Name:
Method Name: dummy_minimize