What is the default alpha in sklearn LogisticRegression with l1 penalty?
lmMod = LogisticRegression(penalty='l1')
According to the documentation,
The parameter used for the the regularization is the parameter C in the input of the call. I represents the inverse of regularization strength. The default value is equal to 1.
C : float, default: 1.0 Inverse of regularization strength; must be a positive float. Like in support vector machines, smaller values specify stronger regularization.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With