85d5c30d2186d07857d1f0fb7c269eb08d2b7d79,deslib/des/des_clustering.py,DESClustering,classify_with_ds,#DESClustering#Any#Any#Any#,227

Before Change


        predicted_label: The predicted label of the query
        
        indices = self.select(query)
        votes = np.atleast_2d(predictions[indices])
        predicted_label = majority_voting_rule(votes)
        // classifier_ensemble = self._get_classifier_ensemble(indices)
        // predicted_label = majority_voting(classifier_ensemble, query)
        return predicted_label

After Change


            predictions = predictions.reshape(1, -1)

        selected_classifiers = self.select(query)
        votes = predictions[np.arange(predictions.shape[0])[:, None], selected_classifiers]
        predicted_label = majority_voting_rule(votes)

        return predicted_label
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: 85d5c30d2186d07857d1f0fb7c269eb08d2b7d79
Time: 2018-04-07
Author: rafaelmenelau@gmail.com
File Name: deslib/des/des_clustering.py
Class Name: DESClustering
Method Name: classify_with_ds


Project Name: scikit-learn-contrib/DESlib
Commit Name: 8115a167b0f280a62aa0d5560709ab9790d96e15
Time: 2020-05-19
Author: rafaelmenelau@gmail.com
File Name: deslib/util/aggregation.py
Class Name:
Method Name: weighted_majority_voting_rule


Project Name: bambinos/bambi
Commit Name: 3b7a3e628b0dea98f0dcaad6d91b22c7c137d04d
Time: 2017-03-24
Author: tyarkoni@gmail.com
File Name: bambi/models.py
Class Name: Model
Method Name: add


Project Name: scipy/scipy
Commit Name: 0ac394e1aa287c52cf94748f38d1c08e14e99c78
Time: 2015-10-12
Author: andyfaff@gmail.com
File Name: scipy/optimize/_differentialevolution.py
Class Name: DifferentialEvolutionSolver
Method Name: init_population_lhs