97f4cedd0caf8b70b0688c939aac825662a99b8b,examples/plot_random_vs_gp.py,,compute_mean_validation_score,#Any#,19

Before Change


    params = {
        "max_depth": [max_depth], "max_features": [max_features],
        "min_samples_split": [mss], "min_samples_leaf": [msl]}
    gscv = GridSearchCV(rfc, params, n_jobs=-1)
    gscv.fit(X, y)
    return -gscv.best_score_

// Bounds inspired by
// http://scikit-learn.org/dev/auto_examples/model_selection/randomized_search.html//example-model-selection-randomized-search-py
bounds = [(3, 50), (1, 12), (1, 12), (1, 12)]

After Change


    forest_params = [int(param) for param in forest_params]
    max_depth, max_features, mss, msl = forest_params

    rfc.set_params(
        max_depth=max_depth, max_features=max_features,
        min_samples_split=mss, min_samples_leaf=msl)
    return -np.mean(cross_val_score(rfc, X, y, cv=3, n_jobs=-1))

// Bounds inspired by
// http://scikit-learn.org/dev/auto_examples/model_selection/randomized_search.html//example-model-selection-randomized-search-py
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 97f4cedd0caf8b70b0688c939aac825662a99b8b
Time: 2016-04-19
Author: manojkumarsivaraj334@gmail.com
File Name: examples/plot_random_vs_gp.py
Class Name:
Method Name: compute_mean_validation_score


Project Name: scikit-optimize/scikit-optimize
Commit Name: 6ddc574a0571c1e60b1afdcf278f12a1342fd87e
Time: 2017-04-09
Author: mks542@nyu.edu
File Name: benchmarks/bench_ml.py
Class Name: MLBench
Method Name: evaluate


Project Name: GRAAL-Research/pytoune
Commit Name: afd5dc51f603cdf30e1991993ba4f06f1f385fc9
Time: 2021-01-08
Author: david.beauchemin.5@ulaval.ca
File Name: poutyne/framework/model.py
Class Name: Model
Method Name: evaluate_generator


Project Name: scikit-optimize/scikit-optimize
Commit Name: 9cdd21160f4b4352b05f7b7ce9f0f63506c585c9
Time: 2017-04-17
Author: iaroslav-ai@users.noreply.github.com
File Name: benchmarks/bench_ml.py
Class Name: MLBench
Method Name: evaluate