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

Computing Perplexity #197

Open
waelbenamara opened this issue Apr 8, 2021 · 1 comment
Open

Computing Perplexity #197

waelbenamara opened this issue Apr 8, 2021 · 1 comment

Comments

@waelbenamara
Copy link

waelbenamara commented Apr 8, 2021

Is there anyway to return perplexity with respect to the number of iterations? In case we want to optimise the number of iteration and avoid getting into burn-in periods in future executions.
A way I found to do that, is to add a list attribute that is iteratively filled with the perplexity corresponding to that iteration.
Perplexity is computed as exp(-(modelLogLikelihood() / totalTokens)))
Any chance I can submit a pull request?

@mimno
Copy link
Owner

mimno commented Apr 8, 2021

Thanks for looking into this! I'm not sure I understand. Is the idea to stop training when model log likelihood stops dropping? Burn-in usually refers to the early iterations, while log likelihood is still improving.

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

2 participants