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

"None" ensembling for classfication accuracy #290

Conversation

derpyplops
Copy link
Collaborator

@derpyplops derpyplops commented Aug 31, 2023

Closes NOT-372

ATM, accuracy for "none" ensembling == "partial" ensembling.

This PR implements a reasonable interpretation of what "No ensembling" would look like for classification accuracy: i.e. for accuracy and calibrated accuracy, use the positive hiddens for inference. I also added logging for cal_thresh.

@CLAassistant
Copy link

CLAassistant commented Aug 31, 2023

CLA assistant check
All committers have signed the CLA.

@derpyplops derpyplops force-pushed the not-372-none-ensembling-for-accuracy branch from a38e2a3 to a63995c Compare August 31, 2023 20:25
@derpyplops derpyplops marked this pull request as ready for review August 31, 2023 20:27
elk/metrics/eval.py Show resolved Hide resolved
@lauritowal lauritowal self-requested a review September 3, 2023 19:05
Copy link
Collaborator

@AlexTMallen AlexTMallen left a comment

Choose a reason for hiding this comment

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

I am a bit confused why we're only evaluating the positive examples in our "none" ensembling case--it seems slightly arbitrary, but fine. I will also note that this function has always and continues to handle LM logits incorrectly. LM logits are log probs, so it does not make sense to apply a sigmoid to them and gives us slightly different ensembled results. Meanwhile, reporter logits are log odds, and applying a sigmoid to log odds gives probabilities.

elk/metrics/eval.py Show resolved Hide resolved
@derpyplops derpyplops merged commit 14669b1 into EleutherAI:main Sep 7, 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

Successfully merging this pull request may close these issues.

4 participants