85d5c30d2186d07857d1f0fb7c269eb08d2b7d79,deslib/des/des_clustering.py,DESClustering,classify_with_ds,#DESClustering#,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)
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
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: adfcd7c21f3f2fc6077eb00abf4887cd2d567880
Time: 2018-04-06
Author: luiz.gh@gmail.com
File Name: deslib/dcs/base.py
Class Name: DCS
Method Name: predict_proba_with_ds
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: 7177e36e8c3851b9f7d1c38fd1b560cdbb292268
Time: 2018-03-26
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/base.py
Class Name: DCS
Method Name: classify_instance