Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

alpha in sklearn LogisticRegression python

What is the default alpha in sklearn LogisticRegression with l1 penalty?

lmMod = LogisticRegression(penalty='l1')
like image 948
anna Avatar asked Jul 18 '26 18:07

anna


1 Answers

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.

like image 197
Rafael Avatar answered Jul 21 '26 08:07

Rafael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!