f149aefb729b02b9b3a297524eebb85594038657,deslib/des/probabilistic.py,Probabilistic,select,#Probabilistic#Any#,148

Before Change


        if self.selection_threshold is None:
            self.selection_threshold = 1.0/self.n_classes

        indices = [clf_index for clf_index, clf_competence in enumerate(competences)
                   if clf_competence > self.selection_threshold]

        if len(indices) == 0:
            indices = list(range(self.n_classifiers))

        return indices

    @staticmethod
    def potential_func(dist):

After Change



        indices = (competences > self.selection_threshold)
        // For the rows that are all False (i.e., no base classifier was selected, select all classifiers (all True)
        indices[~np.any(indices, axis=1), :] = True

        return indices
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: f149aefb729b02b9b3a297524eebb85594038657
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: Probabilistic
Method Name: select


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: soft-matter/trackpy
Commit Name: 42be11c7824427fb0a8490f3bcd635410ded57b3
Time: 2017-07-27
Author: caspervdw@gmail.com
File Name: trackpy/linking/find_link.py
Class Name: FindLinker
Method Name: get_relocate_candidates