LESSON 4.C1 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Ensembles on one dataset
Watch one tree, a forest and two boosters split the same two moons.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 4.C1 · ENSEMBLE BAYTREE · DEPTH 3 · 7 LEAVES · TEST 84%
01
Stage 1 of 6 · Grow a tree
A decision tree splits the plane on one feature at a time. Each split lowers the Gini impurity most.
Explain it simply
You see 40 points from two moons. Dots are class 1 and squares are class 0. A decision tree asks one yes-or-no question at a time, like x₂ ≤ −0.14. It picks the question that leaves each side least mixed, and the blue part is where it says class 1.
A plane with 40 points in two moons. A tree of depth 3 has 7 leaves. It gets 37 of 40 training points and 84% of 1000 test points right.
points: dot class 1, square class 0class 1 side and the boundaryclass 0 sidethresholds, weights and αwrong points, residuals, errorscut branches, left-out points
Toy: two moons · 40 training points · 1000 test points · CART trees
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Gini impurity is 0 for a pure node and 0.5 for an even mix.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.