65c39b6c81281dc31a857c7654cca6caeace7f0d,deslib/tests/dcs/test_a_posteriori.py,,test_estimate_competence_all_ones,#Any#,10

Before Change



    expected = [1.0, 1.0, 1.0]

    competences = a_posteriori_test.estimate_competence(query.reshape(1, -1))
    assert np.isclose(competences, expected).all()

After Change



    expected = [1.0, 1.0, 1.0]

    predictions = []
    for clf in a_posteriori_test.pool_classifiers:
        predictions.append(clf.predict(query)[0])

    competences = a_posteriori_test.estimate_competence(query, predictions=np.array(predictions))
    assert np.isclose(competences, expected).all()

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 11

Non-data size: 11

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_a_posteriori.py
Class Name:
Method Name: test_estimate_competence_all_ones


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_a_posteriori.py
Class Name:
Method Name: test_estimate_competence_diff_target


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_a_posteriori.py
Class Name:
Method Name: test_estimate_competence_kuncheva_ex


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_lca.py
Class Name:
Method Name: test_estimate_competence_diff_target


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_mla.py
Class Name:
Method Name: test_estimate_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_mla.py
Class Name:
Method Name: test_estimate_competence_diff_target


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_mcb.py
Class Name:
Method Name: test_estimate_competence2


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_lca.py
Class Name:
Method Name: test_estimate_competence_woods


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_mcb.py
Class Name:
Method Name: test_estimate_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_mla.py
Class Name:
Method Name: test_estimate_competence_kuncheva_ex


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65c39b6c81281dc31a857c7654cca6caeace7f0d
Time: 2018-03-13
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/dcs/test_mcb.py
Class Name:
Method Name: test_estimate_competence3