Sixty of the worst models gained the most. Sixty of the best gained nothing.
The stumps score 93.3% each and vote to 95.9%. The identical deep trees score 97.9% each and vote to 97.9%. What a crowd buys is not quality, it is disagreement, and one of these forests has none. Four forests, and you call what the vote is worth.
- Score
- 0
- Right
- 0
- Streak
- ×0
- Forest
- 1/4
Sixty one-question trees
Each tree asks a single question, chosen from four at random, on its own sample of the messages.
On its own, an average tree in this forest scores 93.27% on messages it has never seen. The best of them manages 96.77% and the worst 86.01%.
One tree, four questions deep, grown on its own sample of the training messages. It gets a bit under 97 per cent on messages it has never seen. Respectable, and not remarkable.
Loading the forests…
A vote spends disagreement.
NextLearning with no labels+What is actually going onWhy does averaging mistakes help at all?Because independent mistakes land in different places, and a majority only needs most voters to be right on each item.
Suppose each tree is wrong on a different tenth of the messages. On any given message, most trees are right, so the majority is right, even though every tree is flawed. The vote is wrong only where the errors happen to pile up on the same message.
Which is why the arithmetic collapses the moment the errors stop being independent. If all sixty are wrong on the same tenth, the vote is wrong on that tenth too. Breiman’s 1996 paper puts the condition plainly: bagging helps unstable models, and does little for stable ones.
It is also why trees are the classic ingredient. The previous module ended on their instability, which reads as a weakness on its own and turns out to be exactly the property that makes them worth growing sixty of.
+What is actually going onWhat does an ensemble cost?Sixty times the work, and the explanation. You cannot read a forest out loud.
The tree in the previous module fitted on an index card and could be recited to the person it affected. Sixty trees cannot, and no amount of tooling makes a vote across sixty paths into a reason. That trade is the real one, and it is usually decided by whether anybody has to justify the output.
The other cost is plain compute: sixty trainings and sixty predictions per answer. That is nothing here and it is a budget line at scale.
What you get back, besides accuracy, is the vote split itself. A 34-to-26 vote is a genuine measure of the model’s own uncertainty, arrived at differently from the probability in the logistic module, and often more honest.
+Go and try this for realCheck whether your models disagree
Go and try this
Check whether your models disagree
If anybody near you runs an ensemble, ask for the disagreement rate between its members on real inputs. Not their accuracies. How often they differ from each other.
Then ask where the independence was supposed to come from.
What to watch for: How often two of them give different answers to the same input. If it is close to never, the ensemble is decorative and you are paying for it.
+Check yourselfIt marks itself, and nothing is sent anywhere.
Sixty stumps at 93.3% each vote to 95.9%. Sixty identical deep trees at 97.9% vote to 97.9%. Why?
Which of these adds real independence to an ensemble?
Tap an item, then tap where it belongs. Dragging works too.
Sources
- SMS Spam Collection v.1
Almeida, Gómez Hidalgo & Yamakami
Every tree, vote and accuracy on this page, on the same seeded 80/20 split the rest of the site uses.
Free to use with attribution to the authors' 2011 paper
- Random Forests
Leo Breiman, Machine Learning 45(1), 2001
The two sources of disagreement this page builds on: a different sample for each tree, and a random subset of features at each split.
- Bagging Predictors
Leo Breiman, Machine Learning 24(2), 1996
Why voting helps most for models that are unstable, and barely at all for models that are not.