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

Annoying warning due to joblib #103

Closed
oterrier opened this issue May 4, 2020 · 2 comments
Closed

Annoying warning due to joblib #103

oterrier opened this issue May 4, 2020 · 2 comments

Comments

@oterrier
Copy link

oterrier commented May 4, 2020

When delft is used as a library in another python application using a more recent version of scikit-learn (0.22.2 for example) an annoying FutureWarning is dispayed:

FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
  warnings.warn(msg, category=FutureWarning)

This is due to the explicit

from sklearn.externals import joblib

in sequenceLabelling/preprocess.py

Wich should be replaced by

import joblib

And at the same time it could be interesting to bump the current version of scikit-learn to a more recent one (0.22.2 for example)

Best regards

Olivier

@oterrier
Copy link
Author

Thx Luca !

@kermitt2
Copy link
Owner

joblib is now out ! :)

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

2 participants