LESSON 4.54 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Grid search vs random search
Watch grid search and random search spend the same trials on one model.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 4.54 · TUNING BAY41 × 21 FITS · BEST RMSE 0.120
01
Stage 1 of 6 · Validation error
Hyperparameter tuning looks for the lowest validation RMSE. Each cell trains one model with one γ and one λ.
Explain it simply
Each small square is one full training run of the model on the right. It is ridge regression with an RBF kernel. Gamma sets how narrow each bump of the curve is. Lambda sets how hard the weights shrink. Faint squares miss the validation points by little, and strong red squares by a lot.
A map of 41 by 21 cells. The lowest validation error is 0.120. A dashed line marks the good zone.
data pointsvalidation errorgood zonetrialsbest trial, its fit
Toy: kernel ridge regression · 16 training, 16 validation points · γ, λ on log scales
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The error is the typical miss on the 16 validation points.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 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.