LESSON 4.24 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Gradient boosting
Watch small trees add up, each one fitting the errors the others left.
Needs4.23 AdaBoost
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.24 · BOOSTING BAYF₀ = 0 · P = 0.5 · LOSS 0.693
01
Stage 1 of 6 · Start flat
Gradient boosting starts from one constant F₀, the log-odds of the share of dots. Half are dots, so F₀ = 0.
Explain it simply
You see the two moons: dots are class 1 and squares are class 0. The model gives each spot a score F, and the sigmoid turns F into p, the chance of a dot. 20 of the 40 points are dots, so the first guess is p of 0.5. The chart shows what that costs one point: 0.693.
Forty points of two moons, 20 dots and 20 squares. The first model F zero is 0 everywhere, so p is 0.5 for every point. The log loss is 0.693.
points: dot = class 1, square = class 0the model's p and each tree's leavesresiduals and the losscuts, gains and the learning rate νbins and categories
Toy: two moons, 40 points · log loss · trees of up to 4 leaves · 30 rounds
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The first score is the log-odds of class 1; the loss is the log loss.
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.