jefflai108/Contrastive-Predictive-Coding-PyTorch

NCE accuracy calculation

JaejinCho opened this issue · 1 comments

Hello @jefflai108,

I think the accuracy also should have its denominator as batch*self.timestep at

accuracy = 1.*correct.item()/batch

Possibly for other models too although I did not check them.

Yes, and it should be correct += I believe, just above there...