Skip to content

Commit 2182417

Browse files
committed
DOC add conclusion
1 parent da5d162 commit 2182417

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/applications/plot_impact_imbalanced_classes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,10 @@ def evaluate_classifier(clf, df_scores, clf_name=None):
394394
bag_clf, df_scores, "Balanced bagging"
395395
)
396396
df_scores
397+
398+
###############################################################################
399+
# When we analyse the results, we can draw a similar conclusion than in the
400+
# previous discussion. However, we can observe that the strategy
401+
# `class_weight="balanced"` does not improve the performance. A resampling is
402+
# indeed required. The most effective method remains the
403+
# `BalancedBaggingClassifier` using a GBDT as a base learner.

0 commit comments

Comments
 (0)