Python sklearn. Why I received warnings first time only?

lasso-regression, python, scikit-learn

Solution

because the "objective did not converge". The maximum iterations are by default 1000 and you are not setting them. Try setting the `max_iter` parameter to a higher value to avoid the warning.

Problem

I received warnings first time only. Is this normal? ``` >>> cv=LassoCV(cv=10).fit(x,y) C:\Python27\lib\site-packages\scikit_learn-0.14.1-py2.7-win32.egg\sklearn\linear_model\coordinate_descent.py:418: UserWarning: Objective did not converge. You might want to increase the number of iterations ' to increase the number of iterations') >>> cv=LassoCV(cv=10).fit(x,y) >>> ```

Original source