天天看點

成功解決coordinate_descent.py:491: ConvergenceWarning: Objective did not converge. You might want to inc

解決問題

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值,進行拟合資料,但是這也可能會導緻精度的準确性!

繼續閱讀