Describe overfitting and L1/L2 regularization
AmazonApplied Scientist · Technical ScreenLast updated
This question evaluates understanding of model generalization and regularization techniques by probing knowledge of overfitting and L1/L2 regularization and their effects on model parameters.
Define overfitting in machine learning and explain why it is harmful.
Then describe L1 and L2 regularization:
- How each one modifies the loss function.
- The qualitative effect of each (e.g., sparsity, weight shrinkage).
- How they help mitigate overfitting and when you might prefer one over the other.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.