成功解決ConvergenceWarning: 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:html
目錄函數
解決問題spa
解決思路htm
解決方法ci
解決問題
F:\Program Files\Python\Python36\lib\site-packages\sklearn\linear_model\_logistic.py:764: ConvergenceWarning: 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:
https://scikit-learn.org/stable/modules/preprocessing.html
Please also refer to the documentation for alternative solver options:
https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)
文檔
解決思路
收斂警告:lbfgs沒法聚合(狀態=1):
中止:迭代總數達到限制。
增長迭代次數(最大值)或縮放數據,如中所示:https://scikit-learn.org/stable/modules/preprocessing.html
另請參閱文檔以瞭解其餘解算器選項:https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression%20%C2%A0%20extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)
get
解決方法
迭代總數達到限制。增長迭代次數(最大值)或縮放數據.scikit-learn版本問題致使的匹配警告和收斂警告,調用的函數和方法已經有改變,暫時不處理也不會影響程序運行。
建議升級版本或者修改成最新版本的用法,合理使用庫函數!
it