Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
98
def
weighted_mean(items):
99
a, b = zip(*items)
100
return
sum(a) / sum(b)
101
102
103
def
weighted_perplexity(items):
Callers
2
weighted_perplexity
Function · 0.85
bits_per_byte
Function · 0.85
Calls
1
sum
Function · 0.85
Tested by
no test coverage detected