完美解决onvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT. Increase the number of iterations (max_iter) or scale the data as shown in:
文章目录
- 报错问题
- 解决方法
- 声明
报错问题
之前在工作中遇到过这个坑,记录一下问题以及解决方法,不一定针对所有情况都能用,但是可以供大家参考。
问题描述如下:
onvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT. Increase the number of iterations (max_iter) or scale the data as shown in:
收敛警告:lbfgs无法聚合(状态=1):
停止:迭代总数达到限制。
增加迭代次数(最大值)或缩放数据,
解决方法
迭代总数达到限制。增加迭代次数(最大值)或缩放数据.scikit-learn版本问题导致的匹配警告和收敛警告,调用的函数和方法已经有改变,暂时不处理也不会影响程序运行。
建议升级版本或者修改为最新版本的用法,合理使用库函数!
声明
解决方法参考网络,如有侵权联系我删除