1f536c158e45239436fb3464dee5a57d0e28f985,deslib/tests/des/test_des_clustering.py,,test_classify_instance,#,98

Before Change



// Since the majority of the base classifiers selected predicts class 0, the final decision of the ensemble should be 0.
def test_classify_instance():
    query = np.atleast_2d([1, -1])
    clustering_test = DESClustering(create_pool_classifiers() * 4, k=2)
    clustering_test.select = MagicMock(return_value=[0, 1, 2, 3, 5, 6, 7, 9])

    predictions = []

After Change



// Since the majority of the base classifiers selected predicts class 0, the final decision of the ensemble should be 0.
def test_classify_instance():
    query = np.ones((1, 2))
    clustering_test = DESClustering(create_pool_classifiers() * 4, k=2)
    clustering_test.select = MagicMock(return_value=[0, 1, 2, 3, 5, 6, 7, 9])

    predictions = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: 1f536c158e45239436fb3464dee5a57d0e28f985
Time: 2018-04-07
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_des_clustering.py
Class Name:
Method Name: test_classify_instance


Project Name: scikit-learn-contrib/DESlib
Commit Name: 233aee75cc11cf64123774382953fbc0ceb78e87
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_knop.py
Class Name:
Method Name: test_weights_zero


Project Name: scikit-learn-contrib/DESlib
Commit Name: 233aee75cc11cf64123774382953fbc0ceb78e87
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_knorau.py
Class Name:
Method Name: test_weights_zero