In scikit-learn's LogisticRegression, what does a very small value of C do to the fitted model?
Correct answer
D. It applies strong regularisation, shrinking the coefficients toward zero
17 views
D. It applies strong regularisation, shrinking the coefficients toward zero
17 views
In scikit-learn, C is the inverse of the regularisation strength, so a small C penalises the loss heavily and shrinks coefficients, producing a simpler and more biased model. C is not the alpha of Ridge or Lasso, where larger values mean more regularisation, so the two conventions must not be confused. The default C=1.0 applies a moderate L2 penalty unless penalty='l1' or 'elasticnet' is chosen.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.