R interface to the MNIST database of handwritten digits
At present this package is a very basic interface that covers loading the data and caching the (fairly large) files that the database contains. Note that the images are not directly included in the package as they are about 11MB.
See also this gist which also loads the images.
d <- load_mnist(download_if_missing = TRUE)
d
## <mnist object of 10000 entries>
## label: 7 2 1 0 4 1 4 9 5 9 0 6 9 0 1 5 9 7 3 4 9 6 6 5 4 0 7 4 0 1 3 1...
print(d[[1]], TRUE)
## <mnist digit (7)>
##
##
##
##
##
##
##
## :*++:.
## #%%%%%*********.
## :=:=+%%#%%%%%%%=
## : :::: %%-
## :%#
## %@:
## =%%.
## :%%:
## =%*
## #%:
## =%*
## :%%:
## #%+
## #%#.
## .%%:
## .#%=
## =%%.
## :%%%.
## =%%#.
## =%#
## plot(d[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.