One tree
A tree plays 20 questions.
Start with a pile of blue and coral dots
Ask one yes / no question, which draws a line
Keep asking until each side is one color
Your jobMove the line until the colors are sorted as cleanly as possible.
The question
Is x < 0.50?
Yes side
-
No side
-
Lower = cleaner sides. Turns green when you nail it.
Mission 1Turn the mess meter green by moving the line yourself.
+100 XPThe questions this tree asks
Random forest · part 1
One tree memorizes. So grow a bunch.
Each tree gets a random handful of the dots
Some dots get picked twice, some get skipped
So every tree turns out a little different
Your jobGrow 5 trees and see how different they look.
Your forest
No trees yet. Grow one.
Every square is a whole tree's guess map. Same dots, different handfuls, different trees.
Mission 2Grow 5 trees.
+100 XPRandom forest · part 2
Then all the trees vote.
A new dot shows up
Every tree votes on its color
The color with the most votes wins
Your jobTap the plot to drop a dot, then grow the forest to 50 trees.
The vote
Tap the plot to drop a dot.
Crowd bonus: -
Mission 3Grow the forest to 50 trees.
+100 XPXGBoost · boosting
Each new tree fixes the last one’s mistakes.
Start with a flat line as the first guess
Look at the misses
Add a small tree that fixes them
Repeat and the misses keep shrinking
Your jobAdd trees until the misses shrink to under 20% of where they started.
The guess (blue) vs. the real dots
The misses (red) and the newest fix (blue)
Mission 4Shrink the misses under 20% of where they started.
+100 XPXGBoost · pruning
Cut the branches that barely help.
Grow a tree
Score each branch on how much it helped
Cut the ones that barely helped
Your jobTurn up the pickiness until 2 branches get cut.
Misses (dots) and what this tree predicts (blue)
A branch has to help at least this much to stay. Every box shows how much it helped.
Mission 5Cut at least 2 branches.
+100 XPShow the math (optional)
Bigger lambda = smaller, more careful fixes. Tap any box in the tree to see its numbers.
Showdown
Forest vs. Boost. Who wins?
Forest: 60 big trees that vote
Boost: 60 small trees, each fixing the last
Both get graded on new dots
Your jobPick a dataset and hit start.
Random Forest Trees 0
WinnerXGBoost Trees 0
WinnerMission 6Finish a race.
+100 XPRecap + quiz
Lock it in.
Random Forest
- ❧Lots of big trees
- ❧Each gets a random handful of dots
- ❧Built all at once
- ❧They vote
- ❧Hard to mess up
XGBoost
- ❧Lots of small trees
- ❧Each one learns the last one's misses
- ❧Built one after another
- ❧The fixes add up
- ❧Usually wins, but needs tuning
Streak
0
Progress
Mission 7Finish the quiz.
+100 XPSee it in real life
My FRC Match Predictor uses XGBoost.
Same idea as chapter 4. It learned from 18,000+ robotics matches and calls the winner before the match starts.