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

LinearSVR fails to converge in new version #351

Closed
aloukina opened this issue Jan 30, 2020 · 7 comments
Closed

LinearSVR fails to converge in new version #351

aloukina opened this issue Jan 30, 2020 · 7 comments
Assignees

Comments

@aloukina
Copy link
Collaborator

After switching to scipy 1.4.1 we get the following warning in tests:
envs/rsmtool_skll/lib/python3.7/site-packages/sklearn/svm/base.py:929: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations.

I have re-run the tests using old environment and can confirm that this warning is new.

@aloukina aloukina added this to To do in v7.1 Release via automation Jan 30, 2020
@aloukina
Copy link
Collaborator Author

aloukina commented Jan 30, 2020

@desilinguist Any thoughts on this? We are using default settings when calling skll:

learner.train(fs, grid_search=True, grid_objective=objective, grid_jobs=1)

@desilinguist
Copy link
Member

desilinguist commented Jan 30, 2020

Yeah, this is coming from scikit-learn. I thought we had addressed this in SKLL v2.0 but may be we missed it?

@aloukina
Copy link
Collaborator Author

Do you have a test there that can check for this?

@desilinguist
Copy link
Member

We have tests for SVMs but I don't think it gets triggered for the test data there. Which RSMTool test is this?

@aloukina
Copy link
Collaborator Author

linearsvr: https://github.com/EducationalTestingService/rsmtool/tree/master/tests/data/experiments/linearsvr

@desilinguist desilinguist self-assigned this Jan 30, 2020
@desilinguist desilinguist changed the title SVM fails to converge in new version LinearSVR fails to converge in new version Feb 11, 2020
@desilinguist
Copy link
Member

I don't think there's anything that can be done for this other than just suppressing the warnings in the test for now. For a small dataset like the one we use in this test (N=500), when we do grid search, the model fit just doesn't converge in the default 1000 iterations and with the given tolerance. To get the warnings to suppress, we'll need to bump up the tolerance and increase the number of iterations (see here).

In the future, when we can pass in SKLL parameters to RSMTool, we can set the hyper-parameters of the model to suppress the warning.

@desilinguist
Copy link
Member

Addressed by #361.

v7.1 Release automation moved this from In progress to Done Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v7.1 Release
  
Done
Development

No branches or pull requests

2 participants