Machine Learning Fundamentals interview question

What is regularisation, and how do L1 and L2 differ?

Comparison Asked in Machine Learning Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Regularisation adds a penalty on model complexity to the loss so the model prefers simpler solutions and overfits less. L2 (ridge) penalises squared weights and shrinks them all smoothly; L1 (lasso) penalises absolute weights and pushes many exactly to zero, which also selects features.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Machine Learning Fundamentals questions

← All Machine Learning Fundamentals questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake