Description Usage Details Source Examples
A dataset containing 100 images of handwritten digits.
1 |
#'@format A list containing a matrix of image data and a vector of labels:
100-by-784 matrix of image data of handwritten digits.
100-by-1 vector of labels of handwritten digits.
http://yann.lecun.com/exdb/mnist/
1 2 3 4 5 6 7 8 9 | data(mnist_data)
Img_Mat = mnist_data$Images
Img_Label = mnist_data$Labels
digit_data = Img_Mat[1, ] ### image data (784-by-1 vector) of the first handwritten digit (=5)
label = Img_Label[1] ### label of the first handwritten digit (=5)
imgmat = matrix(digit_data, 28, 28) ### transform the vector of image data to a matrix
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.