Can we include a note here.
For more information on the model hyperparameter
C, see x.
Reference section
We created a model with the default
Cvalue that is equal to 1. If we
wanted to use a differentCparameter we could have done so when we created
theLogisticRegressionobject with something likeLogisticRegression(C=1e-3).
We can also change the parameter of a model after it has been created with
theset_paramsmethod, which is available for all scikit-learn estimators.
For example, we can setC=1e-3, fit and evaluate the model:
(Note: I deleted my first question, as I see that __C was explained later in notebook. )