mnist_data: Image data of handwritten digits.

Description Usage Details Source Examples

Description

A dataset containing 100 images of handwritten digits.

Usage

1

Details

#'@format A list containing a matrix of image data and a vector of labels:

Images

100-by-784 matrix of image data of handwritten digits.

Labels

100-by-1 vector of labels of handwritten digits.

Source

http://yann.lecun.com/exdb/mnist/

Examples

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 
   

Buddle documentation built on Feb. 13, 2020, 5:07 p.m.

Related to mnist_data in Buddle...