Commit 5b684756 authored by Marcel Henrik Schubert's avatar Marcel Henrik Schubert
Browse files

changed tresh to cm.max()/2

parent 8529c4ba
......@@ -131,7 +131,7 @@ def plot_confusion_matrix(cm, classes,normalize=True,title='Confusion matrix',cm
fmt = '.2f' if normalize else 'd'
thresh = cm.max() / 1.5
thresh = cm.max() / 2
for i, j in itertools.product(range(cm.shape[0]), range(cm.shape[1])):
ax.text(j, i, format(cm_old[i, j], fmt),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment