4012da339a3d1da75f885efbf58baa7666ee32a9,skopt/tests/test_searchcv.py,,test_search_cv_internal_parameter_types,#,322

Before Change


    // types - float, int, str

    // Below is example code that used to not work.
    X = np.random.randn(10, 1)
    y = X[:, 0] > 0

    model = BayesSearchCV(
        estimator=SVC(),

After Change


            return 0.0

    // Below is example code that used to not work.
    X, y = make_classification(10, 4)

    model = BayesSearchCV(
        estimator=TypeCheckEstimator(),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: librosa/librosa
Commit Name: 1c522b8108be1fd4d3628bc52fa224c7c9350af5
Time: 2014-12-29
Author: brian.mcfee@nyu.edu
File Name: tests/test_failures.py
Class Name:
Method Name: test_valid_stereo


Project Name: librosa/librosa
Commit Name: 1c522b8108be1fd4d3628bc52fa224c7c9350af5
Time: 2014-12-29
Author: brian.mcfee@nyu.edu
File Name: tests/test_failures.py
Class Name:
Method Name: test_mono_valid_stereo