Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mnist = fetch_mldata('MNIST original') #66

Open
dbl001 opened this issue Nov 27, 2019 · 1 comment
Open

mnist = fetch_mldata('MNIST original') #66

dbl001 opened this issue Nov 27, 2019 · 1 comment

Comments

@dbl001
Copy link

dbl001 commented Nov 27, 2019

URLError: <urlopen error [Errno 110] Connection timed out>

mldata.org appears to be down.

Please see:
scikit-learn/scikit-learn#8588

@AasthaVarma
Copy link

fetch_mldata() was used to download MNIST dataset from mldata.org which was pretty unstable so was shutdown eventually.
Scikit-Learn 0.20 uses fetch_openml() instead. You can just do this -

import sklearn
print(sklearn.__version__)

try:
    from sklearn.datasets import fetch_openml
    mnist = fetch_openml('mnist_784', version=1, cache=True)
except ImportError:
    from sklearn.datasets import fetch_mldata
    mnist = fetch_mldata('MNIST original')

Hope this helps😃

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants