61439f1a13e5f904c111f71449452600eb671919,tests.py,,test_relieffpercent_pipeline,#,170

Before Change


    Ensure that ReliefF with % neighbors works in a sklearn pipeline when it is parallelized
    np.random.seed(49082)

    clf = make_pipeline(ReliefF(n_features_to_select=2, n_neighbors=0.1, n_jobs=-1),
                        RandomForestClassifier(n_estimators=100, n_jobs=-1))

    assert np.mean(cross_val_score(clf, features, labels, cv=3)) > 0.7

After Change


    Check: Data (Binary Endpoint, Discrete Features): ReliefF with % neighbors works in a sklearn pipeline
    np.random.seed(49082)

    clf = make_pipeline(ReliefF(n_features_to_select=2, n_neighbors=0.1),
                        RandomForestClassifier(n_estimators=100, n_jobs=-1))

    assert np.mean(cross_val_score(clf, features, labels, cv=3, n_jobs=-1)) > 0.7
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 2

Instances


Project Name: EpistasisLab/scikit-rebate
Commit Name: 61439f1a13e5f904c111f71449452600eb671919
Time: 2018-05-22
Author: ryanurb@upenn.edu
File Name: tests.py
Class Name:
Method Name: test_relieffpercent_pipeline


Project Name: EpistasisLab/scikit-rebate
Commit Name: 61439f1a13e5f904c111f71449452600eb671919
Time: 2018-05-22
Author: ryanurb@upenn.edu
File Name: tests.py
Class Name:
Method Name: test_relieff_pipeline_missing_values


Project Name: EpistasisLab/scikit-rebate
Commit Name: 61439f1a13e5f904c111f71449452600eb671919
Time: 2018-05-22
Author: ryanurb@upenn.edu
File Name: tests.py
Class Name:
Method Name: test_relieff_pipeline_mixed_attributes


Project Name: EpistasisLab/scikit-rebate
Commit Name: 61439f1a13e5f904c111f71449452600eb671919
Time: 2018-05-22
Author: ryanurb@upenn.edu
File Name: tests.py
Class Name:
Method Name: test_relieff_pipeline_cont_endpoint


Project Name: EpistasisLab/scikit-rebate
Commit Name: 61439f1a13e5f904c111f71449452600eb671919
Time: 2018-05-22
Author: ryanurb@upenn.edu
File Name: tests.py
Class Name:
Method Name: test_relieff_pipeline


Project Name: EpistasisLab/scikit-rebate
Commit Name: 61439f1a13e5f904c111f71449452600eb671919
Time: 2018-05-22
Author: ryanurb@upenn.edu
File Name: tests.py
Class Name:
Method Name: test_relieff_pipeline_multiclass


Project Name: EpistasisLab/scikit-rebate
Commit Name: 61439f1a13e5f904c111f71449452600eb671919
Time: 2018-05-22
Author: ryanurb@upenn.edu
File Name: tests.py
Class Name:
Method Name: test_relieff_pipeline_parallel