Skip to content

Perplexity with torch.exp2 instead of torch.exp #241

Description

@malteos

Hi,

thanks for your work on this project!

I was surprised the see that your perplexity implementation uses the base two exponential.

See https://github.com/huggingface/evaluate/blob/main/metrics/perplexity/perplexity.py#L183

Is this indented or a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions