Skip to contents

digit3 contains 2000 images from the MNIST dataset of digit 3. Each element of the list is an image represented as an \((28\times 28)\) matrix that sums to 1. Normalization makes intensities into probability masses and discards the original total intensity of each image.

Usage

data(digit3)

Format

a length-\(2000\) unnamed list "digit3" of \((28\times 28)\) matrices.

Source

MNIST Database of Handwritten Digits, by Yann LeCun, Corinna Cortes, and Christopher J.C. Burges, http://yann.lecun.com/exdb/mnist/. The original package source does not preserve this subset's MNIST row indices, train/test designation, random seed, or exact preparation code. See the installed DATA_PROVENANCE for source-artifact checksums and the limits of the provenance and dataset-specific licensing evidence.

References

LeCun, Y., Bottou, L., Bengio, Y., and Haffner, P. (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 2278–2324. doi:10.1109/5.726791 .

Examples

## LOAD THE DATA
data(digit3)

## SHOW A FEW
opar <- par(no.readonly=TRUE)
par(mfrow=c(2,4), pty="s")
for (i in 1:8){
  image(digit3[[i]])
}

par(opar)