Skip to content

Commit 62453fb

Browse files
committed
comment plt out
1 parent 0674bee commit 62453fb

13 files changed

Lines changed: 35 additions & 33 deletions

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ python: # Only two versions for now
1010
install: "pip install -r requirements.txt"
1111

1212
script:
13-
- sed -i -- 's/range(100)/range(1)/g' ??_*.py # change range to 1 for quick testing
13+
# - sed -i -- 's/range(100)/range(1)/g' ??_*.py # change range to 1 for quick testing
1414
- python lab-07-2-learning_rate_and_evaluation.py # run this first to download the MNIST file
1515
# run all python files in parallel, http://stackoverflow.com/questions/5015316
1616
- ls *lab-*.py|xargs -n 1 -P 3 python

klab-04-4-stock_linear_regression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@
5858

5959
predictions = model.predict(x_test)
6060

61-
plt.plot(y_test)
62-
plt.plot(predictions)
63-
plt.show()
61+
#plt.plot(y_test)
62+
#plt.plot(predictions)
63+
#plt.show()

klab-12-3-rnn_prediction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@
6565
#testY = scaler.transform(testY)
6666

6767
print(testPredict)
68-
plt.plot(testY)
69-
plt.plot(testPredict)
70-
plt.show()
68+
#plt.plot(testY)
69+
#plt.plot(testPredict)
70+
#plt.show()

klab-12-4-rnn_2_prediction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
#testY = scaler.transform(testY)
7070

7171
print(testPredict)
72-
plt.plot(testY)
73-
plt.plot(testPredict)
74-
plt.show()
72+
#plt.plot(testY)
73+
#plt.plot(testPredict)
74+
#plt.show()

lab-07-2-learning_rate_and_evaluation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import tensorflow as tf
33
import random
44
import matplotlib.pyplot as plt
5+
from sys import platform
56

67
from tensorflow.examples.tutorials.mnist import input_data
78

@@ -53,6 +54,7 @@
5354
print("Prediction: ", sess.run(
5455
tf.argmax(hypothesis, 1), {X: mnist.test.images[r:r + 1]}))
5556

57+
5658
#plt.imshow(mnist.test.images[r:r + 1].
5759
# reshape(28, 28), cmap='Greys', interpolation='nearest')
5860
# plt.show()

lab-10-1-mnist_softmax.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
print("Prediction: ", sess.run(
6464
tf.argmax(hypothesis, 1), {X: mnist.test.images[r:r + 1]}))
6565

66-
plt.imshow(mnist.test.images[r:r + 1].
67-
reshape(28, 28), cmap='Greys', interpolation='nearest')
68-
plt.show()
66+
#plt.imshow(mnist.test.images[r:r + 1].
67+
# reshape(28, 28), cmap='Greys', interpolation='nearest')
68+
#plt.show()
6969

7070
'''
7171
Epoch: 0001 cost = 5.888845987

lab-10-2-mnist_nn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
print("Prediction: ", sess.run(
7171
tf.argmax(hypothesis, 1), {X: mnist.test.images[r:r + 1]}))
7272

73-
plt.imshow(mnist.test.images[r:r + 1].
74-
reshape(28, 28), cmap='Greys', interpolation='nearest')
75-
plt.show()
73+
#plt.imshow(mnist.test.images[r:r + 1].
74+
# reshape(28, 28), cmap='Greys', interpolation='nearest')
75+
#plt.show()
7676

7777
'''
7878
Epoch: 0001 cost = 141.207671860

lab-10-3-mnist_nn_xavier.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@
7474
print("Prediction: ", sess.run(
7575
tf.argmax(hypothesis, 1), {X: mnist.test.images[r:r + 1]}))
7676

77-
plt.imshow(mnist.test.images[r:r + 1].
78-
reshape(28, 28), cmap='Greys', interpolation='nearest')
79-
plt.show()
77+
#plt.imshow(mnist.test.images[r:r + 1].
78+
# reshape(28, 28), cmap='Greys', interpolation='nearest')
79+
#plt.show()
8080

8181
'''
8282
Epoch: 0001 cost = 0.301498963

lab-10-4-mnist_nn_deep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@
8484
print("Prediction: ", sess.run(
8585
tf.argmax(hypothesis, 1), {X: mnist.test.images[r:r + 1]}))
8686

87-
plt.imshow(mnist.test.images[r:r + 1].
88-
reshape(28, 28), cmap='Greys', interpolation='nearest')
89-
plt.show()
87+
#plt.imshow(mnist.test.images[r:r + 1].
88+
# reshape(28, 28), cmap='Greys', interpolation='nearest')
89+
#plt.show()
9090

9191
'''
9292
Epoch: 0001 cost = 0.266061549

lab-10-5-mnist_nn_dropout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@
9292
print("Prediction: ", sess.run(
9393
tf.argmax(hypothesis, 1), {X: mnist.test.images[r:r + 1], keep_prob: 1}))
9494

95-
plt.imshow(mnist.test.images[r:r + 1].
96-
reshape(28, 28), cmap='Greys', interpolation='nearest')
97-
plt.show()
95+
#plt.imshow(mnist.test.images[r:r + 1].
96+
# reshape(28, 28), cmap='Greys', interpolation='nearest')
97+
#plt.show()
9898

9999
'''
100100
Epoch: 0001 cost = 0.447322626

0 commit comments

Comments
 (0)