gnosis icon indicating copy to clipboard operation
gnosis copied to clipboard

How to calculate the test Agreement?

Open Alan-JW opened this issue 2 years ago • 2 comments

Hi,@PolinaKirichenko ,How is the test Agreement in your paper calculated in the code? thanks for your answer!

Alan-JW avatar Sep 24 '22 18:09 Alan-JW

we calculate agreement as

agreement = teacher_logits.argmax(-1).eq(student_logits.argmax(-1)).float().mean()

samuelstanton avatar Sep 27 '23 14:09 samuelstanton

if you're using a teacher ensemble you'll want to softmax the logits and average across the ensemble dimension first

samuelstanton avatar Sep 27 '23 14:09 samuelstanton