C:\Users\40248\.conda\envs\pyradiomics\lib\site-packages\sklearn\linear_model\_coordinate_descent.py:648: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations, check the scale of the features or consider increasing regularisation. Duality gap: 5.177e-02, tolerance: 2.561e-02 coef_, l1_reg, l2_reg, X, y, max_iter, tol, rng, random, positive
这个报错需要处理吗?
解决问题
coordinate_descent.py:491: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations. Fitting data with very small alpha may cause precision problems.
ConvergenceWarning)
解决思路
coordinate_descent。收敛警告:目标未收敛。您可能希望增加迭代的次数。用非常小的alpha值拟合数据可能会导致精度问题。收敛警告)
解决方法
此信息提示为警告,即使不处理也不会影响代码编程。如果想要去掉,可以根据提示采用改进的方法!
目标未收敛,可以通过增加迭代的次数。或者用非常小的alpha值,进行拟合数据,但是这也可能会导致精度的准确性!
---——————————–
©著作权归作者所有:来自51CTO博客作者一个处女座的程序猿的原创作品,请联系作者获取转载授权,否则将追究法律责任
成功解决coordinate_descent.py:491: ConvergenceWarning: Objective did not converge. You might want to inc
https://blog.51cto.com/yunyaniu/2912301