You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the ZeroShotGPTClassifier and evaluate the results based on the prediction score. Is there a way to get the prediction score?
The HuggingFace ZeroShotClassifier returns a dictionary with labels and scores as lists. I am looking for a way to score the labels. Otherwise, there is no way to evaluate the labels from the ZeroShotClassifier. Especially if it returns a random label when no label matches.
The text was updated successfully, but these errors were encountered:
@Puturbold there is no way to obtain the prediction scores. HF ZeroShotClassifier is a true classifier, whereas we are using gen models to act as if they were classifiers, but in fact they are just generating a bunch of tokens. Of course we could "ask" the model to return the prediction scores, but that will unlikely represent the actual scores.
Probably manual evaluation would still be the best bet if no labeled data is available. Also having prediction scores would not necessarily help, as the model can be incorrect in a very confident way (a high score for a wrong label).
I am trying to use the ZeroShotGPTClassifier and evaluate the results based on the prediction score. Is there a way to get the prediction score?
The HuggingFace ZeroShotClassifier returns a dictionary with labels and scores as lists. I am looking for a way to score the labels. Otherwise, there is no way to evaluate the labels from the ZeroShotClassifier. Especially if it returns a random label when no label matches.
The text was updated successfully, but these errors were encountered: