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
4215b489
Commit
4215b489
authored
Aug 21, 2017
by
Alan Yee
Committed by
GitHub
Aug 21, 2017
Browse files
Update AutoencoderRunner.py
Remove spacing according to PEP 8
parent
7b435df3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
autoencoder/AutoencoderRunner.py
autoencoder/AutoencoderRunner.py
+5
-5
No files found.
autoencoder/AutoencoderRunner.py
View file @
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.Autoencoder
import
Autoencoder
from
autoencoder_models.Autoencoder
import
Autoencoder
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,10 +32,10 @@ batch_size = 128
...
@@ -32,10 +32,10 @@ batch_size = 128
display_step
=
1
display_step
=
1
autoencoder
=
Autoencoder
(
autoencoder
=
Autoencoder
(
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
))
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