Skip to content

Commit 7ec6e58

Browse files
Pandorolucasb-eyer
authored andcommitted
Fixed a bug regarding the testing progress.
The progress would stop at X-batchsize out of X samples (100%)
1 parent 1ae3418 commit 7ec6e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/MNIST/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def validate(dataset_x, dataset_y, model, epoch, batch_size):
1717

1818
nerrors += sum(mini_batch_targets != mini_batch_prediction)
1919

20-
progress.update(j * batch_size)
20+
progress.update((j+1) * batch_size)
2121

2222
progress.finish()
2323
accuracy = 1 - float(nerrors)/dataset_x.shape[0]

0 commit comments

Comments
 (0)