Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion nucleus/validate/eval_functions/available_eval_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from ..data_transfer_objects.eval_function import EvalFunctionEntry
from ..errors import EvalFunctionNotAvailableError

# TODO(gunnar) split up into modules
# pylint: disable=too-many-lines


class PolygonIOUConfig(EvalFunctionConfig):
def __call__(
Expand Down Expand Up @@ -66,6 +69,8 @@ def __call__(
enforce_label_match=enforce_label_match,
iou_threshold=iou_threshold,
confidence_threshold=confidence_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -123,6 +128,8 @@ def __call__(
"""
return super().__call__(
iou_threshold=iou_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -186,6 +193,8 @@ def __call__(
enforce_label_match=enforce_label_match,
iou_threshold=iou_threshold,
confidence_threshold=confidence_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -249,6 +258,8 @@ def __call__(
enforce_label_match=enforce_label_match,
iou_threshold=iou_threshold,
confidence_threshold=confidence_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -312,6 +323,8 @@ def __call__(
enforce_label_match=enforce_label_match,
iou_threshold=iou_threshold,
confidence_threshold=confidence_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -369,6 +382,8 @@ def __call__(
"""
return super().__call__(
iou_threshold=iou_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -432,6 +447,8 @@ def __call__(
enforce_label_match=enforce_label_match,
iou_threshold=iou_threshold,
confidence_threshold=confidence_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -495,6 +512,8 @@ def __call__(
enforce_label_match=enforce_label_match,
iou_threshold=iou_threshold,
confidence_threshold=confidence_threshold,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
**kwargs,
)

Expand Down Expand Up @@ -794,7 +813,10 @@ def __call__(
Finally, the most outer list combines these filters as a disjunction (OR).
"""
return super().__call__(
confidence_threshold=confidence_threshold, f1_method=f1_method
confidence_threshold=confidence_threshold,
f1_method=f1_method,
annotation_filters=annotation_filters,
prediction_filters=prediction_filters,
)

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exclude = '''

[tool.poetry]
name = "scale-nucleus"
version = "0.10.2"
version = "0.10.3"
description = "The official Python client library for Nucleus, the Data Platform for AI"
license = "MIT"
authors = ["Scale AI Nucleus Team <nucleusapi@scaleapi.com>"]
Expand Down