1ad718089f4d32a34e873091ff9d02a4c36d5d9f,deslib/tests/test_base.py,,test_IH_is_used,#,139
Before Change
ds_test.DSEL_target = y_dsel_ex1
ds_test.DSEL_data = X_dsel_ex1
ds_test.neighbors = neighbors_ex1[index, :]
ds_test.distances = distances_ex1[index, :]
predicted = ds_test.predict(query)
After Change
def test_IH_is_used():
expected = np.array([0, 0, 1])
query = np.ones((3, 2))
ds_test = DS(create_pool_classifiers(), with_IH=True, IH_rate=0.5)
ds_test.fit(X_dsel_ex1, y_dsel_ex1)
ds_test.processed_dsel = dsel_processed_ex1
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: scikit-learn-contrib/DESlib
Commit Name: 1ad718089f4d32a34e873091ff9d02a4c36d5d9f
Time: 2018-03-26
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/test_base.py
Class Name:
Method Name: test_IH_is_used
Project Name: scikit-learn-contrib/DESlib
Commit Name: e5c6f47757837fa401f664438c2a34bb1217036b
Time: 2018-04-02
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_des_knn.py
Class Name:
Method Name: test_estimate_competence_ratio
Project Name: scikit-learn-contrib/DESlib
Commit Name: e5c6f47757837fa401f664438c2a34bb1217036b
Time: 2018-04-02
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_des_knn.py
Class Name:
Method Name: test_estimate_competence_Q
Project Name: scikit-learn-contrib/DESlib
Commit Name: af2095615157e7c105026bd040aa39b9a3de5bb9
Time: 2018-03-29
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/test_base.py
Class Name:
Method Name: test_IH_is_used
Project Name: scikit-learn-contrib/DESlib
Commit Name: e5c6f47757837fa401f664438c2a34bb1217036b
Time: 2018-04-02
Author: rafaelmenelau@gmail.com
File Name: deslib/tests/des/test_des_knn.py
Class Name:
Method Name: test_estimate_competence