233aee75cc11cf64123774382953fbc0ceb78e87,deslib/tests/des/test_knop.py,,test_weights_zero,#,82

Before Change




def test_weights_zero():
    query = np.atleast_2d([1, 1])

    knop_test = KNOP(create_pool_classifiers())
    knop_test.fit(X_dsel_ex1, y_dsel_ex1)

After Change



    knop_test = KNOP(create_pool_classifiers())
    knop_test.fit(X_dsel_ex1, y_dsel_ex1)
    competences = np.zeros((1, 3))
    result = knop_test.select(competences)

    assert np.all(result)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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: 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_knorau.py
Class Name:
Method Name: test_weights_zero