Skip to content

I would like to share my experience with downloading data using fetch_mldata - it's obsolete I #162

Description

@AnthonyTheKoala

I thought I would like to share my experience of downloading data using your demonstration programs located at https://hyperopt.github.io/hyperopt-sklearn/.

I was particularly interested in loading the MNIST data for hand-writtten characters.
The particular line of code to download the data is

..................
from sklearn.datasets import fetch_mldata
................
digits = fetch_mldata('MNIST original')

From the above you will get runtime errors.

Why? Because the underlying site that hosts the data has gone offline, source, ageron/handson-ml#529 comment by "ageron commented on Dec 19, 2019" - copy from " to " and ctrl+f

The author of the comment said that fetch_mldata has been replaced by fetch_openml

In other words to download the well-known datasets, you will need to do this.

from sklearn.datasets import fetch_openml
................
sonar_data = fetch_openml('sonar')
iris_data = fetch_openml('iris')

BUT
It does not work for the MNIST handwriting data:

digits = fetch_openml('MNIST original')

You'll get errors.

Questions please:

  • How do you get MNIST handwriting data using fetch_openml?
  • What is the location on the harddrive of the MNIST data once downloaded.

Info:
OS: MS Win 7.
Python: 3.8.5
sklearn: 0.22.2-post1
hpsklearn: no version method. But downloaded and installed 18th September 2020

Thank you,
Anthony of Sydney

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions