📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is the difference between L1 and L2 regularisation?

A. L1 and L2 are identical
B. L1 penalises squared weights and L2 penalises absolute weights
C. L1 is only for classification
D. L1 penalises the sum of absolute weights and can set some to zero; L2 penalises the sum of squared weights ✅

Correct Answer: D. L1 penalises the sum of absolute weights and can set some to zero; L2 penalises the sum of squared weights

Explanation

L1, or Lasso, can produce sparse models by zeroing weights; L2, or Ridge, shrinks weights smoothly toward zero.