Regularization playground

01 — Explore

Fit the signal, not the noise

Click the plot to add points, drag them around, and see how the choice of features and penalty decides between a curve that generalizes and one that memorizes.

Click to add · drag to move · click a point to remove

02 — Under the hood

What the penalty does

Coefficients

Standardized weights of each feature. Lasso sets some to exactly zero (flat ticks).

Regularization pathweights vs λ

Every line is one weight. Move λ right and they shrink towards zero.

Error

Training Cross-validated (± 1 SE). The gap is overfitting.

03 — Challenge

Can you generalize?

These points come from a hidden function plus noise, and the starting model overfits them. Tame it, then submit: you are scored on 200 fresh points you can't see, against the best setting a grid search could find.

Score
0
Solved
0
Streak
0
Best
0
Training data only · test points appear after you submit