Skip to content

Commit d3d76ba

Browse files
committed
AL-4149: Adjusted formatting
1 parent 8f09793 commit d3d76ba

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

labelbox/data/annotation_types/metrics/scalar.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@ class ScalarMetricAggregation(Enum):
1616
SUM = "SUM"
1717

1818

19-
RESERVED_METRIC_NAMES = (
20-
'true_positive_count',
21-
'false_positive_count',
22-
'true_negative_count',
23-
'false_negative_count',
24-
'precision',
25-
'recall',
26-
'f1',
27-
'iou'
28-
)
19+
RESERVED_METRIC_NAMES = ('true_positive_count', 'false_positive_count',
20+
'true_negative_count', 'false_negative_count',
21+
'precision', 'recall', 'f1', 'iou')
2922

3023

3124
class ScalarMetric(BaseMetric):

labelbox/data/metrics/iou/iou.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def feature_miou_metric(ground_truths: List[Union[ObjectAnnotation,
6262
if value is None:
6363
continue
6464
metrics.append(
65-
ScalarMetric(metric_name="custom_iou", feature_name=key, value=value))
65+
ScalarMetric(metric_name="custom_iou",
66+
feature_name=key,
67+
value=value))
6668
return metrics
6769

6870

0 commit comments

Comments
 (0)