Skip to content

Commit

Permalink
confusion matrix fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragav Venkatesan committed Mar 11, 2017
1 parent 82abc8e commit 5b1d3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yann/modules/resultor.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _store_confusion_img (self, confusion, filename, verbose = 2):
"""
if verbose >= 3:
print ("... Saving the file down")
confusion = confusion / confusion.sum(axis = 0)
confusion = confusion / confusion.sum(axis = 1)
fig = plt.figure()
plt.matshow(confusion)
plt.title('Confusion matrix')
Expand Down

0 comments on commit 5b1d3d0

Please sign in to comment.