Skip to content

Make predict() return "Undetected" in the classification estimator if confidence is below threshold #355

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

Open
gi-ltd opened this issue Dec 23, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gi-ltd
Copy link

gi-ltd commented Dec 23, 2021

Use case: flower recognition
Input: flower photo
Output: flower name

Right now if you input a flower that is not among the classes, predict() will return the one closest to it which is wrong. The right would be telling the user that it was not recognized. One way to do it is making the estimator produce a confidence float [0-1]. Then make predict() accept a confidence threshold along with the data, which if not surpassed returns "Unrecognized".

@sonichi sonichi added enhancement New feature or request help wanted Extra attention is needed labels Dec 23, 2021
@sonichi sonichi pinned this issue Dec 23, 2021
@yiranwu0 yiranwu0 unpinned this issue Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants