gnosis
gnosis copied to clipboard
How to calculate the test Agreement?
Hi,@PolinaKirichenko ,How is the test Agreement in your paper calculated in the code? thanks for your answer!
we calculate agreement as
agreement = teacher_logits.argmax(-1).eq(student_logits.argmax(-1)).float().mean()
if you're using a teacher ensemble you'll want to softmax the logits and average across the ensemble dimension first