By Team Edtoolkits · AI learning
Compare ridge penalties on a fixed polynomial dataset and separate training fit from generalization.
Use the guide alongside the working tool.
Open Regularisation →Explore the lesson
Watch a wiggly curve relax as the penalty grows.
Slide the penalty and watch weights shrink and test error fall, then rise.
Flip the memory card and answer the quick check.
A comparison to try
Keep the ten data points unchanged and compare no penalty, a moderate penalty and a large penalty. Inspect the fitted curve alongside training error and the separate evaluation error.
Read the result
A very flexible curve may fit the observed points while bending badly between them. A large penalty can oversimplify the relationship. The best-looking training fit is therefore not automatically the most useful predictor.
A mistake to avoid
The displayed weight-size summary and the squared ridge penalty are different summaries. This is a tiny polynomial example, not a universal tuning rule. Repeatedly choosing settings against a final test set turns it into tuning data.
Teaching model and privacy
A teaching version: a curve of power 9 fitted to ten made-up dots with a simple squared-weights penalty (ridge). Real models use the same idea with millions of weights. Everything runs in your browser.
Ready to apply this workflow?
Try Regularisation →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.