b5390c169a8739333c9837c84a35884703e2ac68,deslib/tests/des/test_meta_des.py,,test_sample_selection,#,82
Before Change
meta_test = METADES(create_pool_all_agree(0, 10) + create_pool_all_agree(1, 5))
meta_test.processed_dsel = dsel_processed_ex1
value = meta_test._sample_selection_agreement(0)
assert value == 0.2
@pytest.mark.parametrize("Hc", ["a", None, 0.2, -1])
def test_parameter_Hc(Hc):
After Change
meta_test = METADES(create_pool_all_agree(0, 10) + create_pool_all_agree(1, 5))
meta_test.processed_dsel = np.ones((5, 15))
meta_test.processed_dsel[(1, 3, 4), 5:] = 0
expected = np.asarray([1, 1/3, 1, 1/3, 1/3])
value = meta_test._sample_selection_agreement()
assert np.array_equal(value, expected)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: scikit-learn-contrib/DESlib
Commit Name: b5390c169a8739333c9837c84a35884703e2ac68
Time: 2018-04-01
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_meta_des.py
Class Name:
Method Name: test_sample_selection
Project Name: librosa/librosa
Commit Name: 79a295c02a9171e5d7d0ee5a81ac5bb75b5a5332
Time: 2015-02-15
Author: brian.mcfee@nyu.edu
File Name: tests/test_effects.py
Class Name:
Method Name: test_remix_mono
Project Name: scikit-learn-contrib/DESlib
Commit Name: b5390c169a8739333c9837c84a35884703e2ac68
Time: 2018-04-01
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_meta_des.py
Class Name:
Method Name: test_select