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

Function weighted_mean

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

Source from the content-addressed store, hash-verified

96
97
98def weighted_mean(items):
99 a, b = zip(*items)
100 return sum(a) / sum(b)
101
102
103def weighted_perplexity(items):

Callers 2

weighted_perplexityFunction · 0.85
bits_per_byteFunction · 0.85

Calls 1

sumFunction · 0.85

Tested by

no test coverage detected