July 2019
Intermediate to advanced
512 pages
19h 39m
English
As we have learned, we first need to define the placeholders for input and output. Values for the placeholders will be fed in at runtime through feed_dict:
with tf.name_scope('input'): X = tf.placeholder("float", [None, num_input])with tf.name_scope('output'): Y = tf.placeholder("float", [None, num_output])
Since we have a four-layer network, we have four weights and four biases. We initialize our weights by drawing values from the truncated normal distribution with a standard deviation of 0.1. Remember, the dimensions of the weights matrix should be a number of neurons in the previous layer x a number of neurons in the current layer. For instance, the dimension of weight matrix w3 should be the number of neurons in ...
Read now
Unlock full access