Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou authored and Morvan Zhou committed May 23, 2017
1 parent 897c69e commit c59d60e
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion tutorial-contents/301_simple_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
sess.run(tf.global_variables_initializer()) # initialize var in graph

plt.ion() # something about plotting
plt.show()

for step in range(100):
# train and net output
_, l, pred = sess.run([train_op, loss, output], {tf_x: x, tf_y: y})
Expand Down
1 change: 0 additions & 1 deletion tutorial-contents/302_simple_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
sess.run(init_op) # initialize var in graph

plt.ion() # something about plotting
plt.show()
for step in range(100):
# train and net output
_, acc, pred = sess.run([train_op, accuracy, output], {tf_x: x, tf_y: y})
Expand Down
1 change: 0 additions & 1 deletion tutorial-contents/403_RNN_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

plt.figure(1, figsize=(12, 5))
plt.ion() # continuously plot
plt.show()

for step in range(60):
start, end = step * np.pi, (step+1)*np.pi # time range
Expand Down
1 change: 0 additions & 1 deletion tutorial-contents/404_AutoEncoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
# initialize figure
f, a = plt.subplots(2, N_TEST_IMG, figsize=(5, 2))
plt.ion() # continuously plot
plt.show()

# original data (first row) for viewing
view_data = mnist.test.images[:N_TEST_IMG]
Expand Down
1 change: 0 additions & 1 deletion tutorial-contents/406_GAN.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def artist_works(): # painting from the famous artist (real target)
sess.run(tf.global_variables_initializer())

plt.ion() # something about continuous plotting
plt.show()
for step in range(5000):
artist_paintings = artist_works() # real painting from artist
G_ideas = np.random.randn(BATCH_SIZE, N_IDEAS)
Expand Down
1 change: 0 additions & 1 deletion tutorial-contents/406_conditional_GAN.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def artist_works(): # painting from the famous artist (real target)
sess.run(tf.global_variables_initializer())

plt.ion() # something about continuous plotting
plt.show()
for step in range(7000):
artist_paintings, labels = artist_works() # real painting from artist
G_ideas = np.random.randn(BATCH_SIZE, N_IDEAS)
Expand Down
1 change: 0 additions & 1 deletion tutorial-contents/501_dropout.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
sess.run(tf.global_variables_initializer())

plt.ion() # something about plotting
plt.show()

for t in range(500):
sess.run([o_train, d_train], {tf_x: x, tf_y: y, tf_is_training: True}) # train, set is_training=True
Expand Down
1 change: 0 additions & 1 deletion tutorial-contents/502_batch_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
# plot input data
plt.scatter(x, y, c='#FF9359', s=50, alpha=0.5, label='train')
plt.legend(loc='upper left')
plt.show()

# tensorflow placeholder
tf_x = tf.placeholder(tf.float32, [None, 1])
Expand Down

0 comments on commit c59d60e

Please sign in to comment.