Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between load_digits() and fetch_mldata("MNIST Original")

I would like to know the difference between

from sklearn import datasets
dataset = datasets.fetch_mldata("MNIST Original")

and

from sklearn.datasets import load_digits
tempdigits = load_digits()  

How is these two related to MNIST dataset?

like image 601
Gayathri Avatar asked Oct 28 '25 19:10

Gayathri


1 Answers

sklearn comes with a few small standard datasets that do not require to download any file from some external website. load_digits includes around 1800 samples of size 8X8 from the UCI ML dataset:

http://archive.ics.uci.edu/ml/datasets/Optical+Recognition+of+Handwritten+Digits

fetch_mldata downloads the MNist dataset from http://mldata.org/repository/data/viewslug/mnist-original/ which contains 70000 samples of size 28x28 pixels

So basically the datasets downloaded are different.

like image 171
Praveen Avatar answered Oct 31 '25 08:10

Praveen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!