233aee75cc11cf64123774382953fbc0ceb78e87,deslib/tests/des/test_knorau.py,,test_weights_zero,#,80

Before Change




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

    knora_u_test = KNORAU(create_pool_classifiers())
    knora_u_test.estimate_competence = MagicMock(return_value=np.zeros(3))

After Change



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

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

Frequency: 3

Non-data size: 4

Instances


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


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: 1c6afb722afd9838ebe9f82615344d41f5805c11
Time: 2018-04-16
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_knorae.py
Class Name:
Method Name: test_select_none_competent