Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConvergenceWarning: Liblinear failed to converge, increase the number of iterations. "the number of iterations." #27

Open
ziodave opened this issue Jan 5, 2021 · 3 comments

Comments

@ziodave
Copy link
Contributor

ziodave commented Jan 5, 2021

When running tapioca train-classifier I get the following warning multiple times:

lib/python3.6/site-packages/sklearn/svm/_base.py:986: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations.
  "the number of iterations.", ConvergenceWarning)

Is it okey? or should I change some parameters?

Cheers.

@wetneb
Copy link
Member

wetneb commented Jan 5, 2021

I have also seen this message and remember having tried to increase the number of iterations without much success. The learning process still seems to work, but perhaps it would be worth investigating if we could make it better or faster by changing some parameters.

@ziodave
Copy link
Contributor Author

ziodave commented Jan 6, 2021

Maybe we can ping someone from scikit-learn like @ogrisel (we worked together on Apache Stanbol) or @amueller, @thomasjpfan, @hermidalc...

I see that there's an open issue, scikit-learn/scikit-learn#11536

@amueller
Copy link

amueller commented Jan 7, 2021

You can also try scaling your data. Currently the tolerance might be a bit too strict so the warning doesn't necessarily mean the results are not valid (but that the required tolerance was not met).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants