简体   繁体   English

sklearn LogisticRegression python中的alpha

[英]alpha in sklearn LogisticRegression python

sklearn LogisticRegression中带有l1罚分的默认alpha是多少?

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. 用于正则化的参数是调用输入中的参数C I represents the inverse of regularization strength. 我代表正则化强度的倒数。 The default value is equal to 1. 预设值等于1。

C : float, default: 1.0 Inverse of regularization strength; C:浮点型,默认值:1.0正则强度的倒数; must be a positive float. 必须为正浮点数。 Like in support vector machines, smaller values specify stronger regularization. 像在支持向量机中一样,较小的值指定更强的正则化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM