🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Regularisation (Ridge and Lasso): questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. A model has low training error but very high error on new data. What is this called?
  2. Q2. What does Ridge regression add to the ordinary MSE loss?
  3. Q3. As the Ridge penalty λ increases, what happens to the TRAINING error?
  4. Q4. Which method can set some weights to exactly zero, acting as feature selection?
  5. Q5. What does this print? (code)
  6. Q6. How should you choose the penalty strength λ?
  7. Q7. What does this print? (code)
  8. Q8. In scikit-learn's LogisticRegression, you change C from 1.0 to 0.01. What happens?
  9. Q9. Why must features be scaled before Ridge or Lasso?
  10. Q10. The degree-9 model with λ = 100 had high training AND validation error. Why?