Verified Commit 56dbc7df authored by Kiryuu Sakuya's avatar Kiryuu Sakuya 🎵
Browse files

fix typo

parent 391051e1
......@@ -83,7 +83,7 @@ with tf.Session() as sess:
acc_v += computeAccuracy(output_v, Y_v)
acc_v /= 10
print('current accuracy: ', str(acc_v))
# if acc_v \u003e 0.7 and acc_v \u003e max_acc:
# if acc_v > 0.7 and acc_v > max_acc:
# max_acc = acc_v
# saver.save(sess, "step10/Model/FinalNet")
#********** End **********#
\ No newline at end of file
......@@ -78,7 +78,7 @@ with tf.Session() as sess:
acc_Val.append(acc_v)
print('current accuracy: ',str(acc_v))
if acc_v \u003e 0.7 and acc_v \u003e max_acc:
if acc_v > 0.7 and acc_v > max_acc:
max_acc = acc_v
saver.save(sess, "step10/Model/FinalNet")
......@@ -87,6 +87,6 @@ with tf.Session() as sess:
acc_Val.append(acc_v)
print('current accuracy: '+str(acc_v))
if acc_v \u003e 0.7 and acc_v \u003e max_acc:
if acc_v > 0.7 and acc_v > max_acc:
max_acc = acc_v
saver.save(sess, "step10/Model/FinalNet")
\ No newline at end of file
......@@ -64,7 +64,7 @@ with tf.Session() as sess:
acc_v /= 10
# print(acc_v)
if acc_v\u003e0.35:
if acc_v>0.35:
print('训练时间40S内,预测准确率高于35%,恭喜通过本关测试!',end='')
else:
print('训练时间40S内,预测准确率低于35%,很遗憾并未通过本关测试!',end='')
......
......@@ -28,7 +28,7 @@ class batchGenerator:
curBatchY = []
endIndex = self.curIndex + self.batchSize
if endIndex \u003e= self.num_files:
if endIndex >= self.num_files:
endIndex = None
# 当前batch再次打乱顺序
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment