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


    competences = np.zeros((1, 3))
    result = knorau_test.select(competences)

    assert np.all(result)


// Test if the class is raising an error when the base classifiers do not implements the predict_proba method.
// In this case the test should not raise an error since this class does not require base classifiers that
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: nilearn/nilearn
Commit Name: 6704c535b8c59ab3b9b98c0489a051654c1ee727
Time: 2013-04-05
Author: philippe.gervais@inria.fr
File Name: nisl/tests/test_signals.py
Class Name:
Method Name: test_clean_detrending


Project Name: scikit-learn-contrib/DESlib
Commit Name: ff20a1ac24728131fd757d729260224e57b306bd
Time: 2018-12-05
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_knop.py
Class Name:
Method Name: test_estimate_competence