January 2018
Intermediate to advanced
474 pages
10h 23m
English
We learned about the Keras API in Chapter 3. In R, this API is implemented with the keras R package. The keras R package implements most of the functionality of the Keras Python interface, including both the sequential API and the functional API.
As an example, we provide a walkthrough of the MLP Model for classifying handwritten digits from the MNIST dataset at the following link: https://keras.rstudio.com/articles/examples/mnist_mlp.html.
library(keras)
batch_size <- 128num_classes <- 10epochs <- 30
# The data, shuffled and split between train and test setsc(c(x_train, ...Read now
Unlock full access