sklearn LogisticRegression without regularization

前端 未结 3 2127
Happy的楠姐
Happy的楠姐 2021-02-05 06:49

Logistic regression class in sklearn comes with L1 and L2 regularization. How can I turn off regularization to get the \"raw\" logistic fit such as in glmfit in Matlab? I think

3条回答
  •  Happy的楠姐
    2021-02-05 07:02

    Go ahead and set C as large as you please. Also, make sure to use l2 since l1 with that implementation can be painfully slow.

提交回复
热议问题