Skip to content

Commit

Permalink
updated threshold 100 to 101 (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshen3 authored Nov 18, 2024
1 parent 7cb5714 commit 4c220c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kolena/_experimental/object_detection/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ def _compute_metrics(
)
all_thresholds.extend(inf.score for inf in inferences)

if len(all_thresholds) >= 100:
all_thresholds = list(np.linspace(min(all_thresholds), max(all_thresholds), 100))
if len(all_thresholds) >= 101:
all_thresholds = list(np.linspace(min(all_thresholds), max(all_thresholds), 101))
else:
all_thresholds = sorted(all_thresholds)

Expand Down

0 comments on commit 4c220c2

Please sign in to comment.