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
ImportError: cannot import name 'fetch_mldata' from 'sklearn.datasets' #529
Comments
Hi Blosberg, Thanks for your feedback. Check out issue #301, especially this comment and the one after that. If you get stuck, please check out the Jupyter notebooks in this project, as I try to keep them up to date, and when things break (as they sometimes do when time passes and libraries and websites evolve), I add comments in the Jupyter notebooks to explain what changed and what to do about it. Also try searching in this project's issues as some similar questions may already have been answered in the past. I hope this helps! Enjoy learning ML! :) |
Hi Aurelien. |
That's very helpful, thanks @Blosberg ! |
If I can make a suggestion: It might be helpful to have an issue label (like "update"/"antiquated", or "version_sensitive" or s.t. like that) to indicate dependencies from older versions of the text going out of date. |
In the latest version of scikit-learn (version 0.23.1), there is nothing named "fetch_mldata()". (That was present in the previous version of 0.19. ) In the latest version, we need to use fetch_openml().
I was having difficulty opening the mnist dataset which was earlier (older version) to be imported as: If you are still facing difficulty,
|
In the latest version of scikit-learn (version 0.23.1), there is nothing named "fetch_mldata()". (That was present in the previous version of 0.19. ) In the latest version, we need to use fetch_openml(). from sklearn.datasets import fetch_openml If you are still facing difficulty, pip uninstall scikit-learn |
scikit-learn version: 0.24.1 I tried
If not limited to library
|
Hi @kailichou , I'm just tried both Could you please try again? |
OS: Windows 10 Hi @ageron , I tried |
Use python 3.7
And use all pip of python
…On Tue, 11 May, 2021, 1:03 pm kailichou, ***@***.***> wrote:
OS: Windows 10
python: 3.8.9
scikit-learn: 0.24.2
VPN: yes
Hi @ageron <https://github.com/ageron> , I tried fetch_openml('mnist_784'),
it worked.
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#529 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3OVZNNSBF533QWDCKAC73TNDMWBANCNFSM4J4CBYYQ>
.
|
I've been working my way through this book on OSX, and everything comes to a grinding halt on page 81 where it says:
What I get when I input this is:
I tried with python 2 (and 3). Tried upgrading Homebrew, re-installing sklearn. I haven't seen this exact error show up anywhere else, and I'm pretty much out of ideas. It's a bit disheartening to be stopped dead having barely got started :(. Any help?
The text was updated successfully, but these errors were encountered: