ea513c769acc1826e4a3179ae3ab519fcef63140,deslib/dcs/base.py,DCS,classify_instance,#DCS#Any#Any#,173
Before Change
else:
// Selected ensemble of classifiers is combined using Majority Voting
indices = self.select(competences)
votes = np.atleast_2d(predictions[indices])
predicted_label = majority_voting_rule(votes)
return predicted_label
After Change
-------
The predicted label of the query
if query.ndim != predictions.ndim:
raise ValueError("The arrays query and predictions must have the same shape. query.shape is {}"
"and predictions.shape is {}" .format(query.shape, predictions.shape))
if query.ndim < 2:
query = query.reshape(1, -1)
predictions = predictions.reshape(1, -1)
competences = self.estimate_competence(query, predictions=predictions)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: scikit-learn-contrib/DESlib
Commit Name: ea513c769acc1826e4a3179ae3ab519fcef63140
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/base.py
Class Name: DCS
Method Name: classify_instance
Project Name: elfi-dev/elfi
Commit Name: 55bd09be272701797abcf9e549fffe8b0311e387
Time: 2017-03-28
Author: jarno.lintusaari@aalto.fi
File Name: elfi/bo/gpy_model.py
Class Name: GPyRegression
Method Name: evaluate
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