ML
advanced
Regularization in Weight Space 3D
SEE why L1 creates sparsity and L2 creates small weights! Visualize L1/L2 constraint regions in 3D weight space. Watch how diamond (L1) and circular (L2) constraints intersect with loss contours to produce different solutions.
algorithms.live
Training
Data Loss
1.345
Reg. Penalty
12.500
Total Loss
13.845
||w|| Mag
3.536
Parameters
2.0
1.5
1.2
Display
0.30
Insight:
L2 (Circle) shrinks weights proportionally (No 0 weights).
Unconstrained Opt.
Weights
Path
Constraint
What regularisation adds
Sequence
Order how a penalty changes the objective.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
5 pieces left to place
Test your knowledge
20 questions
Question 1 of 20
Score: 0
Viewed in WEIGHT SPACE, L2 regularization constrains the weights to lie within a…
Learn these first
Interview Questions
Microsoft
Amazon
Databricks
Grammarly
Cohere
OpenAI
Meta
Hugging Face
Stability AI
Stripe
Amazon
PayPal
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required