Exercise

Regularization and probabilities

In this exercise, you will observe the effects of changing the regularization strength on the predicted probabilities.

A 2D binary classification dataset is already loaded into the environment as X and y.

Instructions 1/2

undefined XP
  • 1
    • Compute the maximum predicted probability.
    • Run the provided code and take a look at the plot.
  • 2
    • Create a model with C=0.1 and examine how the plot and probabilities change.