becc945240a424bc08f74476c46f6a50b69928a5,src/skmultiflow/meta/additive_expert_ensemble.py,AdditiveExpertEnsemble,fit_single_sample,#AdditiveExpertEnsemble#Any#Any#Any#Any#,60
Before Change
predictions_probs = self.get_expert_predictions_probs([x])
//// 2. Output prediction:
output_pred = np.argmax(np.sum(
[pred_probs * w for pred_probs, w in zip(predictions_probs, (exp.weight for exp in self.experts))],
axis=0
))
//// 3. Update expert weights:
self.update_expert_weights(map(np.argmax, predictions_probs), y)
After Change
predictions = self.get_expert_predictions(X)
//// 2. Get aggregate prediction:
output_pred = np.argmax(self._aggregate_expert_predictions(predictions))
//// 3. Update expert weights:
self.update_expert_weights(predictions, y)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: becc945240a424bc08f74476c46f6a50b69928a5
Time: 2019-04-05
Author: andrecruz97@gmail.com
File Name: src/skmultiflow/meta/additive_expert_ensemble.py
Class Name: AdditiveExpertEnsemble
Method Name: fit_single_sample
Project Name: rasbt/mlxtend
Commit Name: aefd8bcf146d6de8f19fc0c3c5873880bc82886f
Time: 2015-02-23
Author: se.raschka@me.com
File Name: mlxtend/sklearn/ensemble.py
Class Name: EnsembleClassifier
Method Name: predict
Project Name: trevorstephens/gplearn
Commit Name: 45a5b3ee5e0fed29012d3cf2e9c785304789b034
Time: 2015-04-25
Author: trev.stephens@gmail.com
File Name: gplearn/genetic.py
Class Name: BaseSymbolic
Method Name: fit