84a07345139c217c5f77479bd3a129f61a35af27,examples/sklearn_example.py,,,#,20
Before Change
// Load data set and target values
data = load_iris()["data"]
target = load_iris()["target"]
// LogisticRegression CV
def LR_CV(c, ints, kf):
After Change
from bayes_opt import BayesianOptimization
// Load data set and target values
data, target = make_classification(n_samples=2500,
n_features=45,
n_informative=12,
n_redundant=7)
def svccv(C, gamma):
return cross_val_score(SVC(C=C, gamma=gamma, random_state=2),
data, target, "f1", cv=5).mean()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: fmfn/BayesianOptimization
Commit Name: 84a07345139c217c5f77479bd3a129f61a35af27
Time: 2014-12-14
Author: fmfnogueira@gmail.com
File Name: examples/sklearn_example.py
Class Name:
Method Name:
Project Name: scikit-learn-contrib/lightning
Commit Name: c765d1e7e8af81d5a09b53e592d768d7318c963a
Time: 2012-01-12
Author: mathieu@mblondel.org
File Name: lightning/tests/test_primal.py
Class Name:
Method Name:
Project Name: scikit-optimize/scikit-optimize
Commit Name: 4012da339a3d1da75f885efbf58baa7666ee32a9
Time: 2018-06-11
Author: iaroslav.email@gmail.com
File Name: skopt/tests/test_searchcv.py
Class Name:
Method Name: test_search_cv_internal_parameter_types