Datasets:
Search is not available for this dataset
image
imagewidth (px) 28
28
| label
class label 10
classes |
---|---|
55
|
|
00
|
|
44
|
|
11
|
|
99
|
|
22
|
|
11
|
|
33
|
|
11
|
|
44
|
|
33
|
|
55
|
|
33
|
|
66
|
|
11
|
|
77
|
|
22
|
|
88
|
|
66
|
|
99
|
|
44
|
|
00
|
|
99
|
|
11
|
|
11
|
|
22
|
|
44
|
|
33
|
|
22
|
|
77
|
|
33
|
|
88
|
|
66
|
|
99
|
|
00
|
|
55
|
|
66
|
|
00
|
|
77
|
|
66
|
|
11
|
|
88
|
|
77
|
|
99
|
|
33
|
|
99
|
|
88
|
|
55
|
|
99
|
|
33
|
|
33
|
|
00
|
|
77
|
|
44
|
|
99
|
|
88
|
|
00
|
|
99
|
|
44
|
|
11
|
|
44
|
|
44
|
|
66
|
|
00
|
|
44
|
|
55
|
|
66
|
|
11
|
|
00
|
|
00
|
|
11
|
|
77
|
|
11
|
|
66
|
|
33
|
|
00
|
|
22
|
|
11
|
|
11
|
|
77
|
|
99
|
|
00
|
|
22
|
|
66
|
|
77
|
|
88
|
|
33
|
|
99
|
|
00
|
|
44
|
|
66
|
|
77
|
|
44
|
|
66
|
|
88
|
|
00
|
|
77
|
|
88
|
|
33
|
|
11
|
End of preview. Expand
in Dataset Viewer.
Dataset Card for "MNIST"
Quick Start
Usage
>>> from datasets.load import load_dataset
>>> dataset = load_dataset('whyen-wang/mnist')
>>> example = dataset['train'][0]
>>> print(example)
{'image': <PIL.PngImagePlugin.PngImageFile image mode=L size=28x28>,
'label': 5}
Visualization
>>> import cv2
>>> import numpy as np
>>> from PIL import Image
>>> def visualize(example):
image = np.array(example['image'])
image = cv2.resize(image, (280, 280))
cv2.putText(
image, str(example['label']), (0, 50), cv2.FONT_HERSHEY_SIMPLEX,
2, (255), 1, cv2.LINE_AA, False
)
return image
>>> Image.fromarray(example)
Dataset Summary
The MNIST database of handwritten digits, available from this page, has a training set of 60,000 examples, and a test set of 10,000 examples. It is a subset of a larger set available from NIST. The digits have been size-normalized and centered in a fixed-size image.
Supported Tasks and Leaderboards
Languages
None
Dataset Structure
Data Instances
An example looks as follows.
{
"image": PIL.Image(mode="L"),
"label": "0"
}
Data Fields
[More Information Needed]
Data Splits
name | train | test |
---|---|---|
default | 60,000 | 10,000 |
Dataset Creation
Curation Rationale
[More Information Needed]
Source Data
Initial Data Collection and Normalization
[More Information Needed]
Who are the source language producers?
[More Information Needed]
Annotations
Annotation process
[More Information Needed]
Who are the annotators?
[More Information Needed]
Personal and Sensitive Information
[More Information Needed]
Considerations for Using the Data
Social Impact of Dataset
[More Information Needed]
Discussion of Biases
[More Information Needed]
Other Known Limitations
[More Information Needed]
Additional Information
Dataset Curators
[More Information Needed]
Licensing Information
[More Information Needed]
Citation Information
[More Information Needed]
Contributions
Thanks to @github-whyen-wang for adding this dataset.
- Downloads last month
- 324