From 5a7b9a093ce84c20ebac71d517470ed42814b4a5 Mon Sep 17 00:00:00 2001 From: frederik Date: Fri, 22 Mar 2024 10:13:22 +0100 Subject: [PATCH] limit the precision: the rest is just noise --- scripts/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/helpers.py b/scripts/utils/helpers.py index 8d9dc00..297f00f 100644 --- a/scripts/utils/helpers.py +++ b/scripts/utils/helpers.py @@ -55,7 +55,7 @@ class Detection: def __init__(self, start_time, stop_time, species, confidence): self.start = float(start_time) self.stop = float(stop_time) - self.confidence = float(confidence) + self.confidence = round(float(confidence), 4) self.confidence_pct = round(self.confidence * 100) self.species = species self.scientific_name = species.split('_')[0]