April 2020
Intermediate to advanced
330 pages
7h 44m
English
In this section, we add two important layers: the convolution layer, and pooling layer:
dim(train) <- c(nrow(train), 28, 28, 1) dim(test) <- c(nrow(test), 28, 28, 1)
When we make this change, we can see the added dimension for these data objects in the Environment pane, which will look like the following image:

We make this change to the structure because it is a requirement of modeling a CNN using keras.
Read now
Unlock full access