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

Predictions scores for the ZeroShotGPTClassifier #77

Closed
Puturbold opened this issue Nov 7, 2023 · 3 comments
Closed

Predictions scores for the ZeroShotGPTClassifier #77

Puturbold opened this issue Nov 7, 2023 · 3 comments

Comments

@Puturbold
Copy link

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.

@OKUA1
Copy link
Collaborator

OKUA1 commented Nov 7, 2023

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

@Puturbold
Copy link
Author

I appreciate your quick response. Do you have any suggestions for evaluating labels without a pre-labeled reference?

@OKUA1
Copy link
Collaborator

OKUA1 commented Nov 7, 2023

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

@OKUA1 OKUA1 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants