We are in Beta and we are offering 50% off! Use code BETATESTER at checkout.
You can access a significantly larger sample of the platform's content for free by logging in with your Gmail account. Sign in now to explore.

L1 (Lasso) vs. L2 (Ridge) regularization

Machine Learning Medium Seen in real interview

What is L1 and L2 regularization? What are the differences between the two?

L1 is Lasso and it penalizes the sum absolute values of the coefficients.

L2 is ridge, and it penalizes the sum of squared coefficients.

L1 (LASSO) L2 (RIDGE)
Differentiable exept at zero Easily differentiable
Will zero out coefficients that don’t contribute Will penalize greater coefficients more
Used for feature selection Used for feature regularization



Topics

L1, L2, Redularization, Lasso, Ridge
Similar questions

Provide feedback