Skip to content

Commit a301b73

Browse files
dexttokkweon
authored andcommitted
Unblock using matplotlib.pyplot (hunkim#190)
I have no problem with matplotlib.pyplot in my environment. Is there any problem?
1 parent 8abe986 commit a301b73

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

lab-07-4-mnist_introduction.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Lab 7 Learning rate and Evaluation
22
import tensorflow as tf
33
import random
4-
# import matplotlib.pyplot as plt
4+
import matplotlib.pyplot as plt
55
tf.set_random_seed(777) # for reproducibility
66

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

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

7372

7473
'''

0 commit comments

Comments
 (0)