Skip to content

Commit

Permalink
MNIST Example: Incorrect Testing Accuracy
Browse files Browse the repository at this point in the history
See issue for details; need to reset ClassErrorMeter.
  • Loading branch information
sebastiankmiec authored Dec 29, 2018
1 parent 15d37d4 commit 57e6fae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def on_end_epoch(state):
def on_end(state):
print('Training' if state['train'] else 'Testing', 'accuracy')
print(classerr.value())
classerr.reset()

optimizer = torch.optim.SGD(list(params.values()), lr=0.01, momentum=0.9,
weight_decay=0.0005)
Expand Down

0 comments on commit 57e6fae

Please sign in to comment.