Convergence warning: lbfgs failed to converge (status=1): Stop: total no. of iterations reached L

How to Solve Convergence Warning: LBFGS failed to converge (status=1): STOP: TOTAL NO. ITERATIONS REACHED LIMIT. Increase the number of ITERATIONS (max_iter) or scale the data as shown in:

 

solve the problem

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)

 

Solution Ideas

convergence warning: LBFGS cannot aggregate (state =1) :
stop: the total number of iterations is limited.
to increase the number of iterations (maximum) or scaling of data, as shown in https://scikit-learn.org/stable/modules/preprocessing.html
please refer to the documentation for other solver options: https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression%20%C2%A0%20extra_warning_msg=_LOGISTIC_SOLVER_CONVERGENCE_MSG)

 

solution

The total number of iterations reached the limit. Increase the number of iterations (maximum) or scale the data. Matching and convergence warnings caused by the Scikit-learn version issue have been changed in the functions and methods called and will not affect the operation of the program.
recommended to upgrade the version or modify to the latest version of the usage, use the library functions properly!

Read More: