Skip to content

Commit 4a521c5

Browse files
committed
Fix travis
1 parent 5e929f1 commit 4a521c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ script:
1313
- sed -i -- 's/range(total_batch)/range(1)/g' *lab-*.py # change range to 1 for quick testing
1414
- sed -i -- 's/plt.show/#plt.show/g' *lab-*.py # no plt
1515
- sed -i -- 's/plt.plot/#plt.plot/g' *lab-*.py # no plt
16+
- sed -i -- 's/plt.imshow/#plt.imshow/g' *lab-*.py # no plt
1617
- sed -i -- 's/nb_epoch = 12/nb_epoch = 1/g' *lab-*.py # change range to 1 for quick testing
1718
- sed -i -- 's/plot(/# plot (/g' *lab-*.py # change range to 1 for quick testing
1819
- sed -i -- 's/from keras.utils.visualize_util import plot/#/g' *lab-*.py

lab-07-2-learning_rate_and_evaluation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
print("Prediction: ", sess.run(
5555
tf.argmax(hypothesis, 1), feed_dict={X: mnist.test.images[r:r + 1]}))
5656

57-
plt.imshow(mnist.test.images[r:r + 1].
58-
reshape(28, 28), cmap='Greys', interpolation='nearest')
57+
plt.imshow(mnist.test.images[r:r + 1].reshape(28, 28), cmap='Greys', interpolation='nearest')
5958
plt.show()
6059

6160

0 commit comments

Comments
 (0)