List of Listings
Chapter 2. Before we begin: the mathematical building blocks of neural networks
Listing 2.1. Loading the MNIST dataset in Keras
Listing 2.2. The network architecture
Listing 2.3. The compilation step
Listing 2.4. Preparing the image data
Chapter 3. Getting started with neural networks
Listing 3.1. Loading the IMDB dataset
Listing 3.2. Encoding the integer sequences into a binary matrix
Listing 3.3. The model definition
Listing 3.4. Compiling the model
Listing 3.5. Configuring the optimizer
Listing 3.6. Using custom losses and metrics
Listing 3.7. Setting aside a validation set
Get Deep Learning with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.