Skip to content

Computing Perplexity  #197

Open
Open
@waelbenamara

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions