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

Function perplexity

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

Source from the content-addressed store, hash-verified

92
93
94def perplexity(items):
95 return math.exp(-mean(items))
96
97
98def weighted_mean(items):

Callers

nothing calls this directly

Calls 1

meanFunction · 0.85

Tested by

no test coverage detected