python - sklearn LogisticRegression python 中的 alpha

标签 python logistic-regression

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

lmMod = LogisticRegression(penalty='l1')

最佳答案

根据documentation ,

用于正则化的参数是调用输入中的参数C。 I 代表正则化强度的倒数。默认值等于 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.

关于python - sklearn LogisticRegression python 中的 alpha,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47283684/

相关文章:

python - Beautiful Soup findAll() 对 findall() 的结果返回 TypeError

python - python range()[ :] 的切片行为

python - 如何找到逻辑回归模型的特征的重要性?

Python sklearn 逻辑回归 K-hold 交叉验证 : how to create a drameframe for coef_

python - Numpy reshape 保留一些尺寸

python - 为什么 Python 不能解析这个 JSON 数据?

python-3.x - Scikit Learn 逻辑回归困惑

python-2.7 - patsy与patsy.dmatrices的交互作用为“:”提供了重复的列,如“+”或“*”

r - glmnet:我怎么知道我的响应的哪个因子水平在逻辑回归中被编码为 1

python - 是否可以在不使用变量的情况下解压元组?