L1 vs. L2 Regularization: Sparsity and Stability Trade-offs

L1 regularization (Lasso) promotes model sparsity by shrinking less important coefficients to zero, aiding feature selection. L2 regularization (Ridge) reduces the magnitude of all coefficients evenly, offering a smoother fit and better stability, especially with highly correlated features.

Sources

Open the full topic