January 2018
Intermediate to advanced
474 pages
10h 23m
English
Although RNN is mostly used for sequence data, it can also be used for image data. We know that images have minimum two dimensions - height and width. Now think of one of the dimensions as time steps, and other as features. For MNIST, the image size is 28 x 28 pixels, thus we can think of an MNIST image as having 28 time steps with 28 features in each timestep.
We would give examples from time series and text data in next chapters, but let us build and train an RNN for MNIST in Keras to quickly glance over the process of building and training the RNN models.
Import the required modules:
import kerasfrom keras.models import Sequential ...
Read now
Unlock full access