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

Perplexity calculation #67

Open
BranaHi opened this issue Nov 14, 2016 · 0 comments
Open

Perplexity calculation #67

BranaHi opened this issue Nov 14, 2016 · 0 comments

Comments

@BranaHi
Copy link

BranaHi commented Nov 14, 2016

Im wondering if the perplexity calculation is correct.
You calculate the total loss for every batch and average it over the (average)sequence length in that batch an in the end take the average over all batches.
As far as i understood the sum of all batch losses as well as the total number of target tokens need to be collected and divided after the epoch is done?
Could you please tell me why you are calculating it this way? Is it just an aproximation? Also the ppl's calculated this way seem rather small?!
Thanks

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

No branches or pull requests

1 participant