From 30d84a4136582d95343ddc21924316d0e0895ef5 Mon Sep 17 00:00:00 2001 From: tomasoignons Date: Tue, 17 Dec 2024 00:42:46 +0100 Subject: [PATCH] small mistake between columns and row --- webapp/src/components/testing/TestSteps.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/testing/TestSteps.vue b/webapp/src/components/testing/TestSteps.vue index 77bffa3a4..12229e6f7 100644 --- a/webapp/src/components/testing/TestSteps.vue +++ b/webapp/src/components/testing/TestSteps.vue @@ -234,14 +234,14 @@ const confusionMatrix = computed<{labels : Map, matrix : number[ switch (props.task.trainingInformation.dataType) { case "image": (tested.value as Tested["image"]).map( - ( {output} ) => matrix[output.predicted][output.truth] = matrix[output.predicted][output.truth] + 1, + ( {output} ) => matrix[output.truth][output.predicted] = matrix[output.truth][output.predicted] + 1, ); break; //case "text": // return undefined; case "tabular": (tested.value as Tested["tabular"]).results.map( - ({ output }) => matrix[output.predicted][output.truth] = matrix[output.predicted][output.truth] + 1, + ({ output }) => matrix[output.truth][output.predicted] = matrix[output.truth][output.predicted] + 1, ); break; default: {