Commit 289a2f99 authored by Alan Yee's avatar Alan Yee Committed by GitHub
Browse files

Update AdditiveGaussianNoiseAutoencoderRunner.py

Remove spacing according to PEP 8
parent 4215b489
...@@ -9,7 +9,7 @@ from tensorflow.examples.tutorials.mnist import input_data ...@@ -9,7 +9,7 @@ from tensorflow.examples.tutorials.mnist import input_data
from autoencoder_models.DenoisingAutoencoder import AdditiveGaussianNoiseAutoencoder from autoencoder_models.DenoisingAutoencoder import AdditiveGaussianNoiseAutoencoder
mnist = input_data.read_data_sets('MNIST_data', one_hot = True) mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
def standard_scale(X_train, X_test): def standard_scale(X_train, X_test):
...@@ -32,11 +32,11 @@ batch_size = 128 ...@@ -32,11 +32,11 @@ batch_size = 128
display_step = 1 display_step = 1
autoencoder = AdditiveGaussianNoiseAutoencoder( autoencoder = AdditiveGaussianNoiseAutoencoder(
n_input = 784, n_input=784,
n_hidden = 200, n_hidden=200,
transfer_function = tf.nn.softplus, transfer_function=tf.nn.softplus,
optimizer = tf.train.AdamOptimizer(learning_rate = 0.001), optimizer=tf.train.AdamOptimizer(learning_rate = 0.001),
scale = 0.01) scale=0.01)
for epoch in range(training_epochs): for epoch in range(training_epochs):
avg_cost = 0. avg_cost = 0.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment