Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
289a2f99
Commit
289a2f99
authored
Aug 21, 2017
by
Alan Yee
Committed by
GitHub
Aug 21, 2017
Browse files
Update AdditiveGaussianNoiseAutoencoderRunner.py
Remove spacing according to PEP 8
parent
4215b489
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
autoencoder/AdditiveGaussianNoiseAutoencoderRunner.py
autoencoder/AdditiveGaussianNoiseAutoencoderRunner.py
+6
-6
No files found.
autoencoder/AdditiveGaussianNoiseAutoencoderRunner.py
View file @
289a2f99
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment