File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,7 +243,15 @@ https://www.rpubs.com/sedzinfo/keras_mnist
243243The keras package includes a getting started vignette at
244244https://cran.r-project.org/web/packages/keras/vignettes/index.html
245245
246-
246+ For dealing with the data, we can see the gist at
247+ https://gist.github.com/brendano/39760
248+ This opens a binary file (the extracted .gz file that ends in -ubyte) and reads
249+ it into memory. Image data are called x (MNIST) and training (FMNIST), while
250+ label data are called y (MNIST) and label (FMNIST).
251+
252+ For our purposes, consider reducing the dataset to 10%. Could even have a
253+ "bonus track" section to do download of file, R.utils::gunzip to extract the
254+ gz file, then read in the file with readBin.
247255
248256``` {r first-mnist}
249257mnist_train <- read.csv(file = "~/Desktop/mnist_train.csv", header = FALSE)
You can’t perform that action at this time.
0 commit comments