We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b60784 commit d610b4aCopy full SHA for d610b4a
mnist/main.py
@@ -103,7 +103,6 @@ def test():
103
pred = output.data.max(1)[1] # get the index of the max log-probability
104
correct += pred.eq(target.data).cpu().sum()
105
106
- test_loss = test_loss # sum of loss function over all data points
107
test_loss /= len(test_loader.dataset)
108
print('\nTest set: Average loss: {:.4f}, Accuracy: {}/{} ({:.0f}%)\n'.format(
109
test_loss, correct, len(test_loader.dataset),
0 commit comments