Skip to content

Commit

Permalink
Unblock using matplotlib.pyplot (hunkim#190)
Browse files Browse the repository at this point in the history
I have no problem with matplotlib.pyplot in my environment. 
Is there any problem?
  • Loading branch information
dextto authored and kkweon committed Sep 22, 2017
1 parent 8abe986 commit a301b73
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lab-07-4-mnist_introduction.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Lab 7 Learning rate and Evaluation
import tensorflow as tf
import random
# import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
tf.set_random_seed(777) # for reproducibility

from tensorflow.examples.tutorials.mnist import input_data
Expand Down Expand Up @@ -63,12 +63,11 @@
print("Prediction: ", sess.run(
tf.argmax(hypothesis, 1), feed_dict={X: mnist.test.images[r:r + 1]}))

# don't know why this makes Travis Build error.
# plt.imshow(
# mnist.test.images[r:r + 1].reshape(28, 28),
# cmap='Greys',
# interpolation='nearest')
# plt.show()
plt.imshow(
mnist.test.images[r:r + 1].reshape(28, 28),
cmap='Greys',
interpolation='nearest')
plt.show()


'''
Expand Down

0 comments on commit a301b73

Please sign in to comment.