QUESTION 3 OF 10

How does L1 regularization encourage sparsity?

Reveal the answer and explore the explanation.

03
EasyCore

How does L1 regularization encourage sparsity?

Answer
Answer

Adds a term proportional to the sum of absolute coefficients.

Deeper understanding

The L1 objective adds λΣ|wᵢ| to the fitting loss. The nondifferentiable point at zero helps produce exact zero weights in many optimization solutions, unlike ordinary L2 shrinkage. Tune λ using validation data.

Practical example

Encourage a sparse linear model.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As