8334808816d38f3a8d4ae073a1f0848c77fc4888,pythonds/des/knop.py,KNOP,select,#KNOP#Any#,127

Before Change


        output_profile_query = self._output_profile_transform(query)
        weights = self.estimate_competence(output_profile_query.reshape(1, -1))
        // If all weights is equals to zero, it means that no classifier was selected. Hence, use all of them
        if all(weight == 0 for weight in weights):
            weights = np.ones(self.n_classifiers, dtype=int)
        votes = np.array([], dtype=int)
        for clf_idx, clf in enumerate(self.pool_classifiers):

After Change



        // If all weights is equals to zero, it means that no classifier was selected. Hence, use all of them with equal
        // weights.
        if np.sum(weights) == 0:
            weights = np.ones(self.n_classifiers, dtype=int)

        votes = np.array([], dtype=int)
        for clf_idx, clf in enumerate(self.pool_classifiers):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: 8334808816d38f3a8d4ae073a1f0848c77fc4888
Time: 2018-01-09
Author: rafaelmenelau@gmail.com
File Name: pythonds/des/knop.py
Class Name: KNOP
Method Name: select


Project Name: KrishnaswamyLab/PHATE
Commit Name: 82095cb65129040687b2ec85ea36c22c2debbcd2
Time: 2018-05-31
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: transform


Project Name: PyMVPA/PyMVPA
Commit Name: 4d8d8888fcdc2a518afd8ce3952c2214fdc0e440
Time: 2008-07-02
Author: michael.hanke@gmail.com
File Name: tests/test_kernel.py
Class Name: KernelTests
Method Name: testEuclidDist


Project Name: scikit-learn-contrib/DESlib
Commit Name: 8334808816d38f3a8d4ae073a1f0848c77fc4888
Time: 2018-01-09
Author: rafaelmenelau@gmail.com
File Name: pythonds/des/knora_u.py
Class Name: KNORAU
Method Name: select


Project Name: danforthcenter/plantcv
Commit Name: 9dbe3f07cbf9a3d211bad1f7fc48fb7fab4cefcc
Time: 2019-08-22
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/morphology/segment_insertion_angle.py
Class Name:
Method Name: segment_insertion_angle


Project Name: KrishnaswamyLab/PHATE
Commit Name: 82095cb65129040687b2ec85ea36c22c2debbcd2
Time: 2018-05-31
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: fit