From 797323f6e9e1504764a0f90c2ec6cfa419d08246 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 18 Jul 2019 14:49:35 +0200 Subject: [PATCH] Added debug print for diff to largest class Signed-off-by: Jim Martens --- src/twomartens/masterthesis/evaluate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/twomartens/masterthesis/evaluate.py b/src/twomartens/masterthesis/evaluate.py index d3b850f..de661d7 100644 --- a/src/twomartens/masterthesis/evaluate.py +++ b/src/twomartens/masterthesis/evaluate.py @@ -323,6 +323,7 @@ def get_precision_recall(number_gt_per_class: np.ndarray, diff_to_largest_class = cumulative_precision_micro.shape[0] - cumulative_precision.shape[0] if diff_to_largest_class: + print(f"Diff to largest: {diff_to_largest_class}") repeated_last_precision = np.tile(cumulative_precision[-1], diff_to_largest_class) repeated_last_recall = np.tile(cumulative_recall[-1], diff_to_largest_class) extended_precision = np.concatenate((cumulative_precision, repeated_last_precision))