如何减少逻辑回归中的变量?

时间:2020-07-16 07:26:38

标签: logistic-regression statsmodels

我尝试使用RFE和KBest方法来减少变量,但是当我尝试使用时 Somer的D以减少变量,但出现以下错误:

Warning: Maximum number of iterations has been exceeded.
         Current function value: inf
         Iterations: 35
---------------------------------------------------------------------------
LinAlgError                               Traceback (most recent call last)
<ipython-input-133-4c9870c4cef6> in <module>

当我尝试构建logit模型(统计模型)然后拟合结果时,就会发生这种情况。

0 个答案:

没有答案