βœ… Quiz M4.05#

Question

By default, a LogisticRegression in scikit-learn applies:

  • a) no penalty

  • b) a penalty that shrinks the magnitude of the weights towards zero (also called β€œl2 penalty”)

  • c) a penalty that sets some weights exactly to zero (also called β€œl1 penalty”)

Select a single answer

Question

The decision boundaries of a logistic regression:

  • a) uses only one of the input features

  • b) uses a combination of the input features

  • c) separates a single class

Select a single answer

Question

The parameter C in a logistic regression is:

  • a) similar to the parameter alpha in a ridge regressor

  • b) similar to 1 / alpha where alpha is the parameter of a ridge regressor

  • c) not controlling the regularization

Select a single answer