evaluate icon indicating copy to clipboard operation
evaluate copied to clipboard

Perplexity with `torch.exp2` instead of `torch.exp`

Open malteos opened this issue 1 year ago • 0 comments

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?

malteos avatar Aug 10 '22 09:08 malteos