cd1a5446ce793d09f28d021c466a279301eb51f0,deslib/des/meta_des.py,METADES,select,#METADES#,294
Before Change
-------
indices : the indices of the selected base classifiers
indices = [idx for idx, _ in enumerate(competences) if competences[idx] > self.gamma]
// if no classifier was selected, use the whole pool
if len(indices) == 0:
indices = list(range(self.n_classifiers))
After Change
if competences.ndim < 2:
competences = competences.reshape(1, -1)
selected_classifiers = (competences > self.selection_threshold)
// For the rows that are all False (i.e., no base classifier was selected, select all classifiers (all True)
selected_classifiers[~np.any(selected_classifiers, axis=1), :] = True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: scikit-learn-contrib/DESlib
Commit Name: cd1a5446ce793d09f28d021c466a279301eb51f0
Time: 2018-04-01
Author: rafaelmenelau@gmail.com
File Name: deslib/des/meta_des.py
Class Name: METADES
Method Name: select
Project Name: scikit-learn-contrib/DESlib
Commit Name: ea25f7ad99ec6c6a4dc0b9eba04c09c1421ef007
Time: 2018-03-26
Author: rafaelmenelau@gmail.com
File Name: deslib/des/knora_e.py
Class Name: KNORAE
Method Name: select
Project Name: brilee/MuGo
Commit Name: ad08d3c2f97372f6254cb104e12e74197d4d841a
Time: 2016-10-25
Author: brian.kihoon.lee@gmail.com
File Name: policy.py
Class Name: PolicyNetwork
Method Name: run