Skip to content
Snippets Groups Projects
Commit 8a6e79db authored by tomrink's avatar tomrink
Browse files

snapshot...

parent fed205e9
No related branches found
Tags v1.0.0
No related merge requests found
...@@ -59,7 +59,7 @@ def plot_confusion_matrix(cm, labels, title='Confusion matrix', filename = 'conf ...@@ -59,7 +59,7 @@ def plot_confusion_matrix(cm, labels, title='Confusion matrix', filename = 'conf
ax.yaxis.tick_left() ax.yaxis.tick_left()
for i, j in itertools.product(range(cm.shape[0]), range(cm.shape[1])): for i, j in itertools.product(range(cm.shape[0]), range(cm.shape[1])):
ax.text(j, i, format(cm[i, j], 'd') if cm[i,j]!=0 else '.', horizontalalignment="center", fontsize=6, verticalalignment='center', color= "black") ax.text(j, i, format(cm[i, j], 'd') if cm[i,j] != 0 else '.', horizontalalignment="center", fontsize=6, verticalalignment='center', color= "black")
fig.set_tight_layout(True) fig.set_tight_layout(True)
ImageDirAndName = os.path.join('/Users/tomrink', filename) ImageDirAndName = os.path.join('/Users/tomrink', filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment