d3432d8ce79496611715a6835b13bedd89725a81,tests.py,,test_score_2,#,200

Before Change


    known_score = 0.96710588996037627  // Assumes use of the TPOT balanced_accuracy function

    // Reify pipeline with known score
    tpot_obj._optimized_pipeline = tpot_obj._toolbox.individual()
    tpot_obj._fitted_pipeline = tpot_obj._toolbox.compile(expr=tpot_obj._optimized_pipeline)
    tpot_obj._fitted_pipeline.fit(training_features, training_classes)

    // Get score from TPOT

After Change


    known_score = 0.987691257357  // Assumes use of the TPOT balanced_accuracy function

    // Reify pipeline with known score
    pipeline_string= ("KNeighborsClassifier(input_matrix, KNeighborsClassifier__n_neighbors=10, "
    "KNeighborsClassifier__p=1,KNeighborsClassifier__weights=uniform)")
    tpot_obj._optimized_pipeline = creator.Individual.from_string(pipeline_string, tpot_obj._pset)
    tpot_obj._fitted_pipeline = tpot_obj._toolbox.compile(expr=tpot_obj._optimized_pipeline)
    tpot_obj._fitted_pipeline.fit(training_features, training_classes)
    // Get score from TPOT
    score = tpot_obj.score(testing_features, testing_classes)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 11

Instances


Project Name: EpistasisLab/tpot
Commit Name: d3432d8ce79496611715a6835b13bedd89725a81
Time: 2017-03-16
Author: weixuanf@mail.med.upenn.edu
File Name: tests.py
Class Name:
Method Name: test_score_2


Project Name: EpistasisLab/tpot
Commit Name: d3432d8ce79496611715a6835b13bedd89725a81
Time: 2017-03-16
Author: weixuanf@mail.med.upenn.edu
File Name: tests.py
Class Name:
Method Name: test_predict_proba2


Project Name: EpistasisLab/tpot
Commit Name: d3432d8ce79496611715a6835b13bedd89725a81
Time: 2017-03-16
Author: weixuanf@mail.med.upenn.edu
File Name: tests.py
Class Name:
Method Name: test_predict_2


Project Name: EpistasisLab/tpot
Commit Name: d3432d8ce79496611715a6835b13bedd89725a81
Time: 2017-03-16
Author: weixuanf@mail.med.upenn.edu
File Name: tests.py
Class Name:
Method Name: test_score_3


Project Name: EpistasisLab/tpot
Commit Name: d3432d8ce79496611715a6835b13bedd89725a81
Time: 2017-03-16
Author: weixuanf@mail.med.upenn.edu
File Name: tests.py
Class Name:
Method Name: test_predict_proba