Skip to content
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

Return single top class confidence for mulit-label predictions #781

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

EmilyGavrilenko
Copy link
Contributor

Description

Add a UQL operation to return the single top class confidence for multi-label predictions

Type of change

  • New feature (non-breaking change which adds functionality)

How has this change been tested, please provide a testcase or example of how you tested the change?

2 new unit tests

Any specific deployment considerations

linked to this frontend PR

Docs

n/a

for class_name in predicted_classes
]
if not predicted_confidences:
return 0.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm returning 0.0 instead of None because subsequent UQL operations (such as top_class_confidence_single >= 0.5) fail if None is returned

Copy link
Collaborator

@PawelPeczek-Roboflow PawelPeczek-Roboflow Nov 6, 2024

Choose a reason for hiding this comment

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

yeah, I am think in general about Maybe[X] monad to be good idea for UQL

@PawelPeczek-Roboflow PawelPeczek-Roboflow merged commit 8c4fdd4 into main Nov 6, 2024
71 checks passed
@PawelPeczek-Roboflow PawelPeczek-Roboflow deleted the multi_label_top_class_confidence branch November 6, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants