4af750bec058da0cf5d4a3245a443549b9d7fd33,skopt/dummy_opt.py,,dummy_minimize,#,9

Before Change


    lb, ub = extract_bounds(bounds)

    X = np.zeros((maxiter, n_params))
    y = np.zeros(maxiter)

    for i in range(maxiter):
        X[i] = lb + (ub - lb) * rng.rand(n_params)
        y[i] = func(X[i])

    res = OptimizeResult()
    best = np.argmin(y)
    res.x = X[best]
    res.fun = y[best]

After Change


    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):
        raise ValueError(
            "The function to be optimized should return a scalar")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 4af750bec058da0cf5d4a3245a443549b9d7fd33
Time: 2016-04-05
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/dummy_opt.py
Class Name:
Method Name: dummy_minimize


Project Name: scikit-learn-contrib/DESlib
Commit Name: 1e6e979fd9de47c38e2bda2189008a3bae1faaf4
Time: 2018-08-24
Author: rafaelmenelau@gmail.com
File Name: deslib/des/des_mi.py
Class Name: DESMI
Method Name: estimate_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 1002cfbcc9f8182404fb058f959d625de2eabbfc
Time: 2018-03-22
Author: rafaelmenelau@gmail.com
File Name: deslib/des/knora_e.py
Class Name: KNORAE
Method Name: estimate_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 85d5c30d2186d07857d1f0fb7c269eb08d2b7d79
Time: 2018-04-07
Author: rafaelmenelau@gmail.com
File Name: deslib/des/des_clustering.py
Class Name: DESClustering
Method Name: fit