当前位置:网站首页>the max_iter was reached which means the coef_ did not converge “the coef_ did not converge“

the max_iter was reached which means the coef_ did not converge “the coef_ did not converge“

2022-07-17 05:46:00 irrationality

使用LogisticRegression类对数据进行逻辑回归拟合,运行程序后,得到警告:

ConvergenceWarning: The max_iter was reached which means the coef_ did not converge “the coef_ did not converge”, ConvergenceWarning)

说明我们设置的迭代次数不够,参数未收敛,通过设置合理的max_iter属性,可以使模型收敛.

原网站

版权声明
本文为[irrationality]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_54227557/article/details/125822797