Building the TensorFlow graph

This step builds the most fundamental part of our program—the neural network graph.

First, we start by initializing the hyperparameters of the model, as shown in the following example:

learning_rate = 0.001batch_size = 512number_of_iterations = 100000number_hidden_units = 1024

One often experiments with the above values until the model receives decent results:

Get Recurrent Neural Networks with Python Quick Start Guide 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.