MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / weighted_perplexity

Function weighted_perplexity

test/general/lm_eval/metrics.py:103–104  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

101
102
103def weighted_perplexity(items):
104 return math.exp(-weighted_mean(items))
105
106
107def bits_per_byte(items):

Callers

nothing calls this directly

Calls 1

weighted_meanFunction · 0.85

Tested by

no test coverage detected