-
Notifications
You must be signed in to change notification settings - Fork 11
Implement dataset.query_objects method #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gatli
left a comment
There was a problem hiding this 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 ...
nucleus/iou_match.py
Outdated
| and ground_truth_annotation_label is None | ||
| ): | ||
| confusion_category = ConfusionCategory.TRUE_NEGATIVE | ||
| elif model_prediction_label == ground_truth_annotation_label: |
There was a problem hiding this comment.
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.
nucleus/iou_match.py
Outdated
| confusion_category = infer_confusion_category( | ||
| ground_truth_annotation_label=ground_truth_annotation_label, | ||
| model_prediction_label=model_prediction_label, | ||
| ) |
There was a problem hiding this comment.
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. 🙂
Co-authored-by: Gunnar Atli Thoroddsen <gunnar.thoroddsen@scale.com>
gatli
left a comment
There was a problem hiding this 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 😉
Thanks! Yeah, originally I wrote |
No description provided.