LESSON 4.55 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Bayesian optimization
Watch a surrogate model choose the next learning rate to try.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 4.55 · TUNING BAY6 TRIALS · BEST ERROR 0.225
01
Stage 1 of 5 · Costly trials
Each trial trains the model at one learning rate and reads its validation error. After 6 trials, the best error is 0.225.
Explain it simply
The dashed line is the true error for every learning rate. In real tuning you never see it. Each teal dot is one trial, and each trial costs a full training run. So the goal is to find the lowest point with as few trials as possible.
An error plot over learning rates from 0.0001 to 1 with 6 trial dots. The best trial is trial 6 at 0.00094 with error 0.225.
trialslearning rate, pick scoresurrogate μ ± 2σbest so farhidden error curve
Toy: one learning rate, 0.0001 to 1; a made-up error curve
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each trial reads the error f at one learning rate x.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 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.