From 8a6e79db316a4d0f88e35f40580d2627dd38e97d Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 20 Mar 2023 14:33:35 -0500 Subject: [PATCH] snapshot... --- modules/util/plot_cm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/util/plot_cm.py b/modules/util/plot_cm.py index 4638ab89..67f09d1b 100644 --- a/modules/util/plot_cm.py +++ b/modules/util/plot_cm.py @@ -59,7 +59,7 @@ def plot_confusion_matrix(cm, labels, title='Confusion matrix', filename = 'conf ax.yaxis.tick_left() 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) ImageDirAndName = os.path.join('/Users/tomrink', filename) -- GitLab