Fix bug where the test accuracy shown during test computation is computed wrongly. The final test accuracy report is correct however so logged results should be correct.
This commit is contained in:
parent
6a3d271cfd
commit
d2cbae927e
@ -168,7 +168,7 @@ with tf.Session() as sess:
|
|||||||
total_test_c_loss += c_loss_value
|
total_test_c_loss += c_loss_value
|
||||||
total_test_accuracy += acc
|
total_test_accuracy += acc
|
||||||
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
||||||
acc / (batch_idx + 1))
|
total_test_accuracy / (batch_idx + 1))
|
||||||
pbar_test.set_description(iter_out)
|
pbar_test.set_description(iter_out)
|
||||||
pbar_test.update(1)
|
pbar_test.update(1)
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ with tf.Session() as sess:
|
|||||||
total_test_c_loss += c_loss_value
|
total_test_c_loss += c_loss_value
|
||||||
total_test_accuracy += acc
|
total_test_accuracy += acc
|
||||||
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
||||||
acc / (batch_idx + 1))
|
total_test_accuracy / (batch_idx + 1))
|
||||||
pbar_test.set_description(iter_out)
|
pbar_test.set_description(iter_out)
|
||||||
pbar_test.update(1)
|
pbar_test.update(1)
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ with tf.Session() as sess:
|
|||||||
total_test_c_loss += c_loss_value
|
total_test_c_loss += c_loss_value
|
||||||
total_test_accuracy += acc
|
total_test_accuracy += acc
|
||||||
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
||||||
acc / (batch_idx + 1))
|
total_test_accuracy / (batch_idx + 1))
|
||||||
pbar_test.set_description(iter_out)
|
pbar_test.set_description(iter_out)
|
||||||
pbar_test.update(1)
|
pbar_test.update(1)
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ with tf.Session() as sess:
|
|||||||
total_test_c_loss += c_loss_value
|
total_test_c_loss += c_loss_value
|
||||||
total_test_accuracy += acc
|
total_test_accuracy += acc
|
||||||
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
||||||
acc / (batch_idx + 1))
|
total_test_accuracy / (batch_idx + 1))
|
||||||
pbar_test.set_description(iter_out)
|
pbar_test.set_description(iter_out)
|
||||||
pbar_test.update(1)
|
pbar_test.update(1)
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ with tf.Session() as sess:
|
|||||||
total_test_c_loss += c_loss_value
|
total_test_c_loss += c_loss_value
|
||||||
total_test_accuracy += acc
|
total_test_accuracy += acc
|
||||||
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
iter_out = "test_loss: {}, test_accuracy: {}".format(total_test_c_loss / (batch_idx + 1),
|
||||||
acc / (batch_idx + 1))
|
total_test_accuracy / (batch_idx + 1))
|
||||||
pbar_test.set_description(iter_out)
|
pbar_test.set_description(iter_out)
|
||||||
pbar_test.update(1)
|
pbar_test.update(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user