createMNIST: Create MNIST digit recognition dataset

Description Usage Arguments Details Examples

Description

Code heavily inspired by https://gist.github.com/brendano/39760

Usage

1
createMNIST(file = getfilepath("MNIST.rds"), write = TRUE, read = TRUE)

Arguments

file

character; path/filename to write data file to

write

logical; should the dataset be written to disk for later use? (default: TRUE)

read

logical; should we try to read the dataset from the specified location first? (default: TRUE)

Details

First 60000 is train set, last 10000 is test set.

formula(Class~.)

Examples

1
#as.matrix(data[1040,-785])  %>% matrix(28,28)  %>%  Matrix    %>% t%>% image(asp=1)

jkrijthe/createdatasets documentation built on May 19, 2019, 12:44 p.m.