Skip to content
Snippets Groups Projects
Commit f1f98af3 authored by BRIGGAN2's avatar BRIGGAN2
Browse files

fixed line 42

parent bef72c9b
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ def accuracy(labels, pred, k=1):
loss: average cross_entropy loss over batch (scalar)
'''
labels = np.argmax(labels, axis=-1)
pred = np.argmax(labels, axis=-1)
pred = np.argmax(pred, axis=-1)
return np.mean(pred == labels)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment