What are the differences between L1 and L2 regularization?
January 7, 2025
L1 regularization (Lasso): Encourages sparsity in the model by setting some coefficients to zero, leading to feature selection.
L2 regularization (Ridge): Penalizes large coefficients but does not set them to zero, encouraging smaller coefficients overall.