From 052c1bb1cfc4b027ce98b1b5a809aa74a08e9fd9 Mon Sep 17 00:00:00 2001 From: Paul Leroy Date: Thu, 12 Jan 2023 16:46:13 +0100 Subject: [PATCH] Update confusionmatrix.cpp --- confusionmatrix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/confusionmatrix.cpp b/confusionmatrix.cpp index 32e7e25..ef2d993 100644 --- a/confusionmatrix.cpp +++ b/confusionmatrix.cpp @@ -57,10 +57,10 @@ void ConfusionMatrix::compute_precision_recall_f1_score(cv::Mat& confusion_matri FN += confusion_matrix.at(realIdx, predictedIdx); } int den = TP + FN; - if (den == 0) - precision_recall_f1_score.at(RECALL, realIdx) = CCCoreLib::NAN_VALUE; - else - precision_recall_f1_score.at(RECALL, realIdx) = TP / den; +// if (den == 0) +// precision_recall_f1_score.at(RECALL, realIdx) = CCCoreLib::NAN_VALUE; +// else +// precision_recall_f1_score.at(RECALL, realIdx) = TP / den; } // compute F1-score