Defining the network parameters

Next, we define all the network parameters:

  1. Define the number of units in the hidden layer:
hidden_size = 100
  1. Define the length of the input and output sequence:
seq_length = 25
  1. Define the learning rate for gradient descent:
learning_rate = 1e-1
  1. Set the seed value:
seed_value = 42
tf.set_random_seed(seed_value)
random.seed(seed_value)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset