Skip to content

Commit eeba7c0

Browse files
author
Matt Sokoloff
committed
Merge branch 'ms/custom-scalar-metrics' of https://github.com/Labelbox/labelbox-python into ms/metric-notebook
2 parents a565f31 + 38fa46a commit eeba7c0

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

labelbox/data/serialization/ndjson/label.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import logging
21
from itertools import groupby
3-
from labelbox.data.annotation_types.classification.classification import Dropdown
2+
43
from labelbox.data.annotation_types.metrics import ScalarMetric
54

65
from operator import itemgetter
@@ -14,12 +13,11 @@
1413
from ...annotation_types.data import ImageData, TextData, VideoData
1514
from ...annotation_types.label import Label
1615
from ...annotation_types.ner import TextEntity
16+
from ...annotation_types.classification import Dropdown
1717
from .metric import NDScalarMetric, NDMetricAnnotation
1818
from .classification import NDChecklistSubclass, NDClassification, NDClassificationType, NDRadioSubclass
1919
from .objects import NDObject, NDObjectType
2020

21-
logger = logging.getLogger(__name__)
22-
2321

2422
class NDLabel(BaseModel):
2523
annotations: List[Union[NDObjectType, NDClassificationType, NDScalarMetric]]

tests/data/metrics/iou/data_row/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -675,11 +675,3 @@ def point_pair():
675675
}
676676
}],
677677
expected=0.879113232477017)
678-
679-
680-
# TODO:
681-
# Test no predictions and no labels
682-
# We want the behvaior to be
683-
# (len(predictions) ==0 and len(labels)> 0) == 0
684-
# (len(predictions) > 1 and len(labels) == 0) == 0
685-
# (len(predictions) ==0 and len(labels) == 0) == None

0 commit comments

Comments
 (0)