Increase the number of iterations (max_iter) or scale the data as shown in:
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.Increase the number of iterations (max_iter) or scale the data as shown in: https://scikit-learn.org/stable/modules/preprocessing.htmlPlease also refer to
·
报错原因:
我正在用逻辑回归模型(Logistic Regression)做一个二分类任务,使用封装好的模型,
然后自己的代码如下:
from sklearn.linear_model import LogisticRegression
mymodel = LogisticRegression()
然后出现了上面的错误。。。。。。。
解决方法:mymodel = LogisticRegression(max_iter=10000)
更多推荐
所有评论(0)