From d4e67c5d3011e176cc8a2fffab9a34abda5e4d45 Mon Sep 17 00:00:00 2001 From: iback Date: Fri, 9 Aug 2024 14:08:01 +0000 Subject: [PATCH] fixed typo --- panoptica/panoptica_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panoptica/panoptica_result.py b/panoptica/panoptica_result.py index 5e5419a..24a446e 100644 --- a/panoptica/panoptica_result.py +++ b/panoptica/panoptica_result.py @@ -264,7 +264,7 @@ def _calc_global_bin_metric(self, metric: Metric, prediction_arr, reference_arr) if metric not in self._global_metrics: raise MetricCouldNotBeComputedException(f"Global Metric {metric} not set") if self.tp == 0: - is_edgecase, result = self._edge_case_handler.handle_zero_tp(metric, self.tp, res.num_pred_instances, res.num_ref_instances) + is_edgecase, result = self._edge_case_handler.handle_zero_tp(metric, self.tp, self.num_pred_instances, self.num_ref_instances) if is_edgecase: return result pred_binary = prediction_arr