使用LogisticRegression
类对数据进行逻辑回归拟合,运行程序后,得到警告:
ConvergenceWarning: The max_iter was reached which means the coef_ did not converge "the coef_ did not converge", ConvergenceWarning)
说明我们设置的迭代次数不够,参数未收敛,通过设置合理的max_iter
属性,可以使模型收敛.
使用LogisticRegression
类对数据进行逻辑回归拟合,运行程序后,得到警告:
ConvergenceWarning: The max_iter was reached which means the coef_ did not converge "the coef_ did not converge", ConvergenceWarning)
说明我们设置的迭代次数不够,参数未收敛,通过设置合理的max_iter
属性,可以使模型收敛.