minpeter parquet-converter commited on
Commit
e149ac2
·
verified ·
0 Parent(s):

Duplicate from ylecun/mnist

Browse files

Co-authored-by: Parquet-converter (BOT) <[email protected]>

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license:
9
+ - mit
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 10K<n<100K
14
+ source_datasets:
15
+ - extended|other-nist
16
+ task_categories:
17
+ - image-classification
18
+ task_ids:
19
+ - multi-class-image-classification
20
+ paperswithcode_id: mnist
21
+ pretty_name: MNIST
22
+ dataset_info:
23
+ config_name: mnist
24
+ features:
25
+ - name: image
26
+ dtype: image
27
+ - name: label
28
+ dtype:
29
+ class_label:
30
+ names:
31
+ '0': '0'
32
+ '1': '1'
33
+ '2': '2'
34
+ '3': '3'
35
+ '4': '4'
36
+ '5': '5'
37
+ '6': '6'
38
+ '7': '7'
39
+ '8': '8'
40
+ '9': '9'
41
+ splits:
42
+ - name: train
43
+ num_bytes: 17223300.0
44
+ num_examples: 60000
45
+ - name: test
46
+ num_bytes: 2875182.0
47
+ num_examples: 10000
48
+ download_size: 18157506
49
+ dataset_size: 20098482.0
50
+ configs:
51
+ - config_name: mnist
52
+ data_files:
53
+ - split: train
54
+ path: mnist/train-*
55
+ - split: test
56
+ path: mnist/test-*
57
+ default: true
58
+ ---
59
+
60
+ # Dataset Card for MNIST
61
+
62
+ ## Table of Contents
63
+ - [Dataset Description](#dataset-description)
64
+ - [Dataset Summary](#dataset-summary)
65
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
66
+ - [Languages](#languages)
67
+ - [Dataset Structure](#dataset-structure)
68
+ - [Data Instances](#data-instances)
69
+ - [Data Fields](#data-fields)
70
+ - [Data Splits](#data-splits)
71
+ - [Dataset Creation](#dataset-creation)
72
+ - [Curation Rationale](#curation-rationale)
73
+ - [Source Data](#source-data)
74
+ - [Annotations](#annotations)
75
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
76
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
77
+ - [Social Impact of Dataset](#social-impact-of-dataset)
78
+ - [Discussion of Biases](#discussion-of-biases)
79
+ - [Other Known Limitations](#other-known-limitations)
80
+ - [Additional Information](#additional-information)
81
+ - [Dataset Curators](#dataset-curators)
82
+ - [Licensing Information](#licensing-information)
83
+ - [Citation Information](#citation-information)
84
+ - [Contributions](#contributions)
85
+
86
+ ## Dataset Description
87
+
88
+ - **Homepage:** http://yann.lecun.com/exdb/mnist/
89
+ - **Repository:**
90
+ - **Paper:** MNIST handwritten digit database by Yann LeCun, Corinna Cortes, and CJ Burges
91
+ - **Leaderboard:**
92
+ - **Point of Contact:**
93
+
94
+ ### Dataset Summary
95
+
96
+ The MNIST dataset consists of 70,000 28x28 black-and-white images of handwritten digits extracted from two NIST databases. There are 60,000 images in the training dataset and 10,000 images in the validation dataset, one class per digit so a total of 10 classes, with 7,000 images (6,000 train images and 1,000 test images) per class.
97
+ Half of the image were drawn by Census Bureau employees and the other half by high school students (this split is evenly distributed in the training and testing sets).
98
+
99
+ ### Supported Tasks and Leaderboards
100
+
101
+ - `image-classification`: The goal of this task is to classify a given image of a handwritten digit into one of 10 classes representing integer values from 0 to 9, inclusively. The leaderboard is available [here](https://paperswithcode.com/sota/image-classification-on-mnist).
102
+
103
+ ### Languages
104
+
105
+ English
106
+
107
+ ## Dataset Structure
108
+
109
+ ### Data Instances
110
+
111
+ A data point comprises an image and its label:
112
+
113
+ ```
114
+ {
115
+ 'image': <PIL.PngImagePlugin.PngImageFile image mode=L size=28x28 at 0x276021F6DD8>,
116
+ 'label': 5
117
+ }
118
+ ```
119
+
120
+ ### Data Fields
121
+
122
+ - `image`: A `PIL.Image.Image` object containing the 28x28 image. Note that when accessing the image column: `dataset[0]["image"]` the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the `"image"` column, *i.e.* `dataset[0]["image"]` should **always** be preferred over `dataset["image"][0]`
123
+ - `label`: an integer between 0 and 9 representing the digit.
124
+
125
+ ### Data Splits
126
+
127
+ The data is split into training and test set. All the images in the test set were drawn by different individuals than the images in the training set. The training set contains 60,000 images and the test set 10,000 images.
128
+
129
+ ## Dataset Creation
130
+
131
+ ### Curation Rationale
132
+
133
+ The MNIST database was created to provide a testbed for people wanting to try pattern recognition methods or machine learning algorithms while spending minimal efforts on preprocessing and formatting. Images of the original dataset (NIST) were in two groups, one consisting of images drawn by Census Bureau employees and one consisting of images drawn by high school students. In NIST, the training set was built by grouping all the images of the Census Bureau employees, and the test set was built by grouping the images form the high school students.
134
+ The goal in building MNIST was to have a training and test set following the same distributions, so the training set contains 30,000 images drawn by Census Bureau employees and 30,000 images drawn by high school students, and the test set contains 5,000 images of each group. The curators took care to make sure all the images in the test set were drawn by different individuals than the images in the training set.
135
+
136
+ ### Source Data
137
+
138
+ #### Initial Data Collection and Normalization
139
+
140
+ The original images from NIST were size normalized to fit a 20x20 pixel box while preserving their aspect ratio. The resulting images contain grey levels (i.e., pixels don't simply have a value of black and white, but a level of greyness from 0 to 255) as a result of the anti-aliasing technique used by the normalization algorithm. The images were then centered in a 28x28 image by computing the center of mass of the pixels, and translating the image so as to position this point at the center of the 28x28 field.
141
+
142
+ #### Who are the source language producers?
143
+
144
+ Half of the source images were drawn by Census Bureau employees, half by high school students. According to the dataset curator, the images from the first group are more easily recognizable.
145
+
146
+ ### Annotations
147
+
148
+ #### Annotation process
149
+
150
+ The images were not annotated after their creation: the image creators annotated their images with the corresponding label after drawing them.
151
+
152
+ #### Who are the annotators?
153
+
154
+ Same as the source data creators.
155
+
156
+ ### Personal and Sensitive Information
157
+
158
+ [More Information Needed]
159
+
160
+ ## Considerations for Using the Data
161
+
162
+ ### Social Impact of Dataset
163
+
164
+ [More Information Needed]
165
+
166
+ ### Discussion of Biases
167
+
168
+ [More Information Needed]
169
+
170
+ ### Other Known Limitations
171
+
172
+ [More Information Needed]
173
+
174
+ ## Additional Information
175
+
176
+ ### Dataset Curators
177
+
178
+ Chris Burges, Corinna Cortes and Yann LeCun
179
+
180
+ ### Licensing Information
181
+
182
+ MIT Licence
183
+
184
+ ### Citation Information
185
+
186
+ ```
187
+ @article{lecun2010mnist,
188
+ title={MNIST handwritten digit database},
189
+ author={LeCun, Yann and Cortes, Corinna and Burges, CJ},
190
+ journal={ATT Labs [Online]. Available: http://yann.lecun.com/exdb/mnist},
191
+ volume={2},
192
+ year={2010}
193
+ }
194
+ ```
195
+
196
+ ### Contributions
197
+
198
+ Thanks to [@sgugger](https://github.com/sgugger) for adding this dataset.
mnist/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d49fcf556ce25b002b302e318ce4a11098bbfe5d4499c3f35d7c72297c52374b
3
+ size 2595890
mnist/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2c01285a9f89399335b00ee4e8d499dc4e46db5e39c74903ce5618d895eb3bf
3
+ size 15561616