Skip to content

Conversation

@ntamas92
Copy link
Contributor

No description provided.

Copy link
Contributor

@gatli gatli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good except some Nucleus specific logic 🙂

You might have inferred a wrong class based on a mapping based match ...

and ground_truth_annotation_label is None
):
confusion_category = ConfusionCategory.TRUE_NEGATIVE
elif model_prediction_label == ground_truth_annotation_label:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong as it doesn't take into account allowed label mapping. We can have a true positive according to this mapping even though the labels don't match.

The true_positive field indicates if the match was a match.

Comment on lines 59 to 62
confusion_category = infer_confusion_category(
ground_truth_annotation_label=ground_truth_annotation_label,
model_prediction_label=model_prediction_label,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this was a bit of a confusing ask: we should propogate the true_positive to the SDK but then use that to map the confusion type. 🙂

@ntamas92 ntamas92 marked this pull request as ready for review October 23, 2023 10:27
Copy link
Contributor

@gatli gatli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

I added a docstring for EvaluationMatch, LMK if there is anything unclear there.

  • fixed IOU type int->float

Nullable has the lame type annotation Optional. You'll get used to it 😉

@ntamas92
Copy link
Contributor Author

LGTM 👍

I added a docstring for EvaluationMatch, LMK if there is anything unclear there.

  • fixed IOU type int->float

Nullable has the lame type annotation Optional. You'll get used to it 😉

Thanks! Yeah, originally I wrote str | None to mark nullable properties, but that seemed to break the builds prior to 3.10

@ntamas92 ntamas92 merged commit c641abb into master Oct 23, 2023
@ntamas92 ntamas92 deleted the tamasn/dataset_query_objects branch October 23, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants