Interactive Machine learning · Classification

Ensemble Learning, the game

Why ask one model when you can ask a hundred? Simulate the wisdom of the crowd, then learn the four ways to combine models.

~12 minBeginner friendlyConcepts4 missions235 XP
Mission 1+60 XP✓ Complete

Wisdom of the crowd

An ensemble combines the predictions of several models to get a better prediction than any single one. If each model is right more often than not and their mistakes are independent, a majority vote is right far more often.

The simulator assumes the models make independent errors. Real models are correlated, so real gains are smaller; that is why ensembles try to make their members different.

👥Vote simulator
+60 XP
–One model
–Majority vote
One model
Majority vote of all models
  • ✓Reach 90%+ ensemble accuracy using models that are each only 65% (or less) accurate+30 XP
  • ✓Show the dark side: models worse than a coin flip (below 50%) make the vote worse+30 XP
Mission 2+25 XP✓ Complete

Weak and strong learners

A weak learner is only slightly better than random guessing (for two classes, a bit over 50% accuracy). A decision stump (a tree with a single split) is the classic example. A strong learner achieves high accuracy on its own.

🧠Quick check
+25 XP

Which is the classic weak learner used in boosting?

Mission 3+60 XP✓ Complete

Four ways to combine

MethodHow it trainsHow it combinesMain effect
BaggingSame algorithm on different bootstrap samples, in parallelVote / averageReduces variance
BoostingModels in sequence; each focuses on the previous mistakesWeighted voteReduces bias
StackingDifferent algorithms; a meta-model learns from their cross-validated predictionsMeta-modelLearns the best combination
BlendingLike stacking, but the meta-model learns from a single hold-out setMeta-modelSimpler, faster stacking

The article’s boosting analogy: a student fails Physics, Maths and CS in test 1, so they give those subjects more weight for test 2, and so on. Each “test” is a model that focuses on what the previous one got wrong.

⚡Name the ensemble
1 / 6
correct on the first try
Final boss+90 XP✓ Defeated

Defeat the Ensemble Boss 🐲

Six questions, three hearts.

Question 1 / 6
❤️❤️❤️

💥 The boss winsReview the missions above, then try again.

You’re a Ensemble Master!

Share on LinkedIn
What’s next

Keep levelling up

You learned why combining models works (and when it doesn’t), the difference between weak and strong learners, and how bagging, boosting, stacking and blending combine models.

Lv 1 Rookie0 / 235 XP