How does L1 regularization encourage sparsity?
Reveal the answer and explore the explanation.
03EasyCoreHow does L1 regularization encourage sparsity?
Answer
EasyCore
How does L1 regularization encourage sparsity?
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 ↗