-
Notifications
You must be signed in to change notification settings - Fork 285
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
scikit-learn: depend on joblib directly #207
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
Hi @obukhov-sergey can we help somehow to get this merged? It's blocking depending on newer scikit versions if we depend on talon in the same project. Thanks for the awesome library btw! |
You can reproduce with these steps:
./venv/bin/python
Python 3.6.10 (default, May 14 2020, 09:43:31)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import talon.signature
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephane/src/talonerreur/venv/lib/python3.6/site-packages/talon/signature/__init__.py", line 28, in <module>
from . learning import classifier
File "/home/stephane/src/talonerreur/venv/lib/python3.6/site-packages/talon/signature/learning/classifier.py", line 11, in <module>
from sklearn.externals import joblib
ImportError: cannot import name 'joblib' |
A workaround can be done by adding a dependancy on
Demo: ./venv/bin/python
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import talon.signature
/tmp/talonerr/venv/lib/python3.7/site-packages/sklearn/externals/joblib/__init__.py:15: 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) It's only a warning, not an An equivalent to this workaround can be inserted in |
Hi @horkhe just wanted to bump this if you are able to help get it looked at. |
+1 |
1 similar comment
+1 |
@abhishekshingadiya or @entamburini do you have merge permissions for this project? Can you please merge it? |
Closes #206
scikit-learn
has deprecated accessingjoblib
internals for a while now, and this is a hard error in the release ofscikit-learn==0.23
.This PR naively imports
joblib
directly, rather than viasklearn.externals
.