ML Academy · Track 1 · Classical Machine Learning

L1 and L2: two penalties, two different worlds

Why does lasso produce exact zeros while ridge does not? The answer is not in the algebra but in the geometry: a diamond has corners, a circle does not.

3 steps 105 XP A free account is needed
Start the lesson →

Sources

ML Academy · an interactive machine learning course that runs in your browser · All lessons