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
C
value that is equal to 1. If we
wanted to use a differentC
parameter we could have done so when we created
theLogisticRegression
object with something likeLogisticRegression(C=1e-3)
.
We can also change the parameter of a model after it has been created with
theset_params
method, 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. )