From 3a059125dd7b01c76b7a02b59814ed5bc32d9ac4 Mon Sep 17 00:00:00 2001 From: ZhuGeRoastedFish <77224640+ZhuGeRoastedFish@users.noreply.github.com> Date: Sat, 14 Jan 2023 21:43:27 +0800 Subject: [PATCH] Fx confusion-matrix xlabel typo (#10692) fix confusion-matrix xlabel typo Signed-off-by: ZhuGeRoastedFish <77224640+ZhuGeRoastedFish@users.noreply.github.com> Signed-off-by: ZhuGeRoastedFish <77224640+ZhuGeRoastedFish@users.noreply.github.com> Co-authored-by: Glenn Jocher --- utils/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/metrics.py b/utils/metrics.py index c01f823..7fb0777 100644 --- a/utils/metrics.py +++ b/utils/metrics.py @@ -208,7 +208,7 @@ class ConfusionMatrix: vmin=0.0, xticklabels=ticklabels, yticklabels=ticklabels).set_facecolor((1, 1, 1)) - ax.set_ylabel('True') + ax.set_xlabel('True') ax.set_ylabel('Predicted') ax.set_title('Confusion Matrix') fig.savefig(Path(save_dir) / 'confusion_matrix.png', dpi=250)