← All AI/ML articles

AdaBoost, visualised.

A single straight-line cut is a terrible classifier. But if every new cut pays extra attention to the points the last cuts got wrong, a crowd of terrible classifiers becomes a great one. Watch the dots grow where it matters.

1. Add a weak stump2. Upweight the mistakes3. Let them vote
Click to add a point of the selected class · Shift-click (or right-click) a point to remove it · Bigger dot = more weight · White ring = the ensemble gets it wrong.
Ensemble accuracy0
Last stump error ε0
Points0
Behind the scenes · 1

One round, up close

Each round, AdaBoost picks the best stump: one cut along x or y, judged by weighted error. Then it multiplies the weight of every point the stump got wrong by a big factor and shrinks the rest. The next stump sees a world where the old mistakes are loud. Slide through the rounds.


stump says +1 herestump says −1 herestump is wrong (ring)
What the computer does in this round

After re-weighting and normalising, the points the stump got wrong hold exactly 50% of the total weight. So the same stump would now be no better than a coin flip, and the next one has to find something new.

Behind the scenes · 2

The weighted vote

Stumps do not vote equally. A stump with low error gets a big vote weight α; one barely better than chance gets almost none. Drag the white dot: each bar is one stump’s vote (up = cyan, down = pink, height = α). The sign of the sum decides.


Votes at the white dot

Early stumps shout loudest. Later ones fine-tune the borders, mostly where the points are hard.

Behind the scenes · 3

Weak learners, strong team

Each stump alone is only slightly better than a coin flip (pink, its weighted error ε). Yet the team’s training error (cyan) keeps dropping, and it is forced below the dashed bound, the product of 2√(ε(1−ε)) over all rounds. As long as every stump beats chance, the bound shrinks exponentially.


ensemble training errorstump weighted error εupper bound on training error
Experiment

Break it on purpose

Weak to strong

Circles can’t be split by one straight cut. Start from 1 stump and press play to watch a ring appear.

One mislabelled point

Plant a wrongly labelled point in the middle of the other class. Watch it swell as the weights pile onto it.

Noisy labels

Flip 10% of labels and boost 40 rounds. Training accuracy climbs by chasing the noise.

Check yourself

Three quick questions


Key takeaways

  • Weak learners (stumps) only need to beat a coin flip.
  • Re-weighting multiplies mistakes by eα and correct points by e−α, then normalises.
  • Vote weight α = ½ ln((1−ε)/ε): accurate stumps get louder votes.
  • The final model is the sign of the weighted sum of all stumps.
  • Noisy labels hurt: AdaBoost keeps raising the weight on points it cannot get right, including wrong labels.
← Back to all articles