Skip to content

Commit 7f4d330

Browse files
author
Songki Choi
authored
Fix GT vs prediction order mismatch due to different sorting result (#2216)
Signed-off-by: Songki Choi <[email protected]>
1 parent 469a767 commit 7f4d330

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

otx/api/usecases/evaluation/f_measure.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,6 @@ def __init__(
678678
if len(prediction_dataset) == 0 or len(ground_truth_dataset) == 0:
679679
raise ValueError("Cannot compute the F-measure of an empty result set.")
680680

681-
ground_truth_dataset.sort_items()
682-
prediction_dataset.sort_items()
683-
684681
labels = resultset.model.configuration.get_label_schema().get_labels(include_empty=False)
685682
classes = [label.name for label in labels]
686683
boxes_pair = _FMeasureCalculator(

0 commit comments

Comments
 (0)