What is the difference between L1 regularization (Lasso) and L2 regularization (Ridge)?

Machine Learning Medium

Machine Learning — Medium

What is the difference between L1 regularization (Lasso) and L2 regularization (Ridge)?

Key points

  • L1 drives coefficients to exactly zero for sparsity
  • L2 rarely drives coefficients to zero
  • L1 penalizes absolute weights; L2 penalizes squared weights
  • L1 is Lasso; L2 is Ridge

Ready to go further?

Related questions