leonleyang commited on
Commit
5f84619
·
verified ·
1 Parent(s): c9daa71

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +70 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ # For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
3
+ # Doc / guide: https://huggingface.co/docs/hub/datasets-cards
4
+ {}
5
+ ---
6
+
7
+ # Dataset Card for MNIST
8
+
9
+ <!-- Provide a quick summary of the dataset. -->
10
+
11
+ ## Dataset Details
12
+
13
+ ### Dataset Description
14
+
15
+ <!-- Provide a longer summary of what this dataset is. -->
16
+ The MNIST database is a large collection of handwritten digits. It has a training set of 60,000 examples, and a test set of 10,000 examples.
17
+
18
+ ### Dataset Sources
19
+
20
+ <!-- Provide the basic links for the dataset. -->
21
+
22
+ - **Homepage:** https://paperswithcode.com/dataset/mnist#:~:text=The%20MNIST%20database%20(Modified%20National,test%20set%20of%2010%2C000%20examples.
23
+
24
+ ## Dataset Structure
25
+
26
+ <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
27
+
28
+ Total images: 70,000
29
+
30
+ Splits:
31
+
32
+ - **Train**: 60,000 images
33
+
34
+ - **Test**: 10,000 images
35
+
36
+ Classes (labels): 10 categories
37
+
38
+ Image specs: 28x28 pixels, grayscale
39
+
40
+ ## Example Usage
41
+ Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
42
+ ```
43
+ from datasets import load_dataset
44
+
45
+ # Load the dataset
46
+ dataset = load_dataset("randall-lab/mnist", split="train", trust_remote_code=True)
47
+ # dataset = load_dataset("randall-lab/mnist", split="test", trust_remote_code=True)
48
+
49
+ # Access a sample from the training set
50
+ example = dataset["train"][0]
51
+ image = example["image"]
52
+ label = example["label"]
53
+
54
+ image.show() # Display the image
55
+ print(f"Label: {label}")
56
+ ```
57
+
58
+ ## Citation
59
+
60
+ <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
61
+
62
+ **BibTeX:**
63
+
64
+ @misc{lecun1998mnist,
65
+ author={Yann LeCun and Corinna Cortes and Christopher J.C. Burges},
66
+ title={The MNIST database of handwritten digits},
67
+ year={1998},
68
+ url={http://yann.lecun.com/exdb/mnist/}
69
+ }
70
+