65cce49dcac95a195c1c3cb2283a4f4dbda981ec,deslib/des/probabilistic.py,Exponential,source_competence,#Exponential#,330

Before Change


        
        C_src = np.zeros((self.n_samples, self.n_classifiers))
        for clf_index in range(self.n_classifiers):
            supports = self._get_scores_dsel(clf_index)
            support_correct = [supports[sample_idx, i] for sample_idx, i in enumerate(self.DSEL_target)]
            support_correct = np.array(support_correct)
            C_src[:, clf_index] = exponential_func(self.n_classes, support_correct)
        return C_src

After Change


        
        C_src = np.zeros((self.n_samples, self.n_classifiers))
        for clf_index in range(self.n_classifiers):
            supports = self.dsel_scores[:, clf_index, :]
            support_correct = supports[np.arange(self.n_samples), self.DSEL_target]

            C_src[:, clf_index] = exponential_func(self.n_classes, support_correct)
        return C_src

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65cce49dcac95a195c1c3cb2283a4f4dbda981ec
Time: 2018-03-25
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: Exponential
Method Name: source_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65cce49dcac95a195c1c3cb2283a4f4dbda981ec
Time: 2018-03-25
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: RRC
Method Name: source_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65cce49dcac95a195c1c3cb2283a4f4dbda981ec
Time: 2018-03-25
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: MinimumDifference
Method Name: source_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65cce49dcac95a195c1c3cb2283a4f4dbda981ec
Time: 2018-03-25
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: Logarithmic
Method Name: source_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: 65cce49dcac95a195c1c3cb2283a4f4dbda981ec
Time: 2018-03-25
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: DESKL
Method Name: source_competence