jefflai108 / Contrastive-Predictive-Coding-PyTorch

Contrastive Predictive Coding for Automatic Speaker Verification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NCE accuracy calculation

JaejinCho opened this issue · 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...