-
Notifications
You must be signed in to change notification settings - Fork 249
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
Avoid deprecation warning from sklearn.externals.six #50
base: master
Are you sure you want to change the base?
Conversation
Use full name for scikit-learn to avoid sklearn-0.0 package
@gkhayes, any chance you could take a look at this? |
I am getting an error when trying to use mlrose as mentioned above:
And making the first change get's rid of any error occurring during import. |
It seems that scikit-learn has released 0.23.1 and removed six from their sklearn.externals module, so this warning is now an error. Hopefully mlrose will be updated soon as well? |
I downgraded my scikit-learn to version 0.22 and my code is now working again. So my requirements.txt file now has: scikit-learn==0.22 |
hi guys, love the package. Any plans to refactor this? |
@arainboldt, it appears that mlrose-hiive (a fork of this repo) has done this. We've moved to using that module now. |
The changes here should avoid the deprecation warnings from sklearn about its internal six module being deprecated in favor of the "official" six module:
I also changed the name used to identify scikit-learn as a requirement to (what I understand to be) the more correct name
scikit-learn
which avoids the "alias" packagesklearn-0.0
from getting installed.All the tests run by
./test/test.sh
still pass with this change, so hopefully this is correct. If not, hopefully this is a hint in the direction on how to avoid the deprecation warning.