Penalizing large weights to reduce overfitting.
- Category: Machine Learning — part of the Machine Learning Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "Regularization (L1/L2)" in one sentence, then back it up with a tiny example
# Regularization (L1/L2) — minimal example
# See scikit-learn / the linked framework docs for the exact API.Tip
Quick recall: "Regularization (L1/L2)" — penalizing large weights to reduce overfitting.