What is regularization in supervised learning?

Updated May 17, 2026

Short answer

Regularization penalizes complex models to prevent overfitting.

Deep explanation

Regularization adds a penalty term to the loss function. L1 (Lasso) promotes sparsity, while L2 (Ridge) penalizes large weights. It controls model complexity and improves generalization.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Supervised Learning interview questions

View all →