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

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😃

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