Skip to Main Content
Advanced Deep Learning with Keras
book

Advanced Deep Learning with Keras

by Rowel Atienza, Neeraj Verma, Valerio Maggio
October 2018
Intermediate to advanced content levelIntermediate to advanced
368 pages
9h 20m
English
Packt Publishing
Content preview from Advanced Deep Learning with Keras

Recurrent neural networks (RNNs)

We're now going to look at the last of our three artificial neural networks, Recurrent neural networks, or RNNs.

RNNs are a family of networks that are suitable for learning representations of sequential data like text in Natural Language Processing (NLP) or stream of sensor data in instrumentation. While each MNIST data sample is not sequential in nature, it is not hard to imagine that every image can be interpreted as a sequence of rows or columns of pixels. Thus, a model based on RNNs can process each MNIST image as a sequence of 28-element input vectors with timesteps equal to 28. The following listing shows the code for the RNN model in Figure 1.5.1:

Figure 1.5.1: RNN model for MNIST digit classification

In the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Neural Networks with Keras

Hands-On Neural Networks with Keras

Niloy Purkait
Deep Learning with Keras

Deep Learning with Keras

Antonio Gulli, Sujit Pal
Keras Deep Learning Cookbook

Keras Deep Learning Cookbook

Rajdeep Dua, Sujit Pal, Manpreet Singh Ghotra

Publisher Resources

ISBN: 9781788629416Supplemental Content