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: 3

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: Logarithmic
Method Name: source_competence


Project Name: LCAV/pyroomacoustics
Commit Name: 400d559e4e388ecc59dfe21ce9abe83ee04da979
Time: 2020-05-31
Author: 32697085+Womac@users.noreply.github.com
File Name: pyroomacoustics/doa/music.py
Class Name: MUSIC
Method Name: _process