January 2018
Intermediate to advanced
474 pages
10h 23m
English
We learned about the TensorFlow estimator API in Chapter 2. In R, this API is implemented with the tfestimator R package.
As an example, we provide a walkthrough of the MLP Model for classifying handwritten digits from the MNIST dataset at the following link: https://tensorflow.rstudio.com/tfestimators/articles/examples/mnist.html.
library(tensorflow)library(tfestimators)
batch_size <- 128n_classes <- 10n_steps <- 100
# initialize data directorydata_dir <- "~/datasets/mnist"dir.create(data_dir, recursive = TRUE, showWarnings = FALSE)# download the MNIST ...
Read now
Unlock full access