December 2018
Intermediate to advanced
764 pages
18h 18m
English
The steps to build a stacked autoencoder model in TensorFlow are as follows:
learning_rate = 0.001n_epochs = 20batch_size = 100n_batches = int(mnist.train.num_examples/batch_size)
# number of pixels in the MNIST image as number of inputsn_inputs = 784n_outputs = n_inputs
x = tf.placeholder(dtype=tf.float32, name="x", shape=[None, n_inputs])y = tf.placeholder(dtype=tf.float32, name="y", shape=[None, n_outputs])
Read now
Unlock full access