Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Rectified the error with MCB in dynamic selection #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion brew/selection/dynamic/mcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def select(self, ensemble, x):
# use best_classifier
best_i = np.argmax(scores)
best_j_score = np.max(scores[np.arange(len(scores)) != best_i])
if scores[best_i] - scores[best_j] >= self.significance_threshold:
if scores[best_i] - scores[best_j_score] >= self.significance_threshold:
best_classifier = ensemble.classifiers[best_i]
return Ensemble(classifiers=[best_classifier]), None

Expand Down