mnist_data {Buddle}R Documentation

Image data of handwritten digits.

Description

A dataset containing 100 images of handwritten digits.

Usage

data(mnist_data)

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

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 
   


[Package Buddle version 2.0.1 Index]