microsoft/FLAML

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

Open

#355 ouverte le 23 déc. 2021

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Jupyter Notebook (560 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (4 364 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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".

Guide contributeur