Machine Learning & AI
Intermediate

L1 Regularization (Lasso)

Penalizes absolute weights, driving many to exactly zero for feature selection.

Formula

J=MSE+λjwjJ = \text{MSE} + \lambda\sum_j |w_j|

Variables

\lambdaStrength
w_jWeights

Example

Lasso can zero out irrelevant features

Did You Know?

L1 produces sparse models — effectively doing automatic feature selection.

Share this formula