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

Function pop_stddev

test/general/lm_eval/metrics.py:14–16  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

12
13
14def pop_stddev(arr):
15 mu = mean(arr)
16 return math.sqrt(sum([(x - mu) ** 2 for x in arr]) / len(arr))
17
18
19def sample_stddev(arr):

Callers

nothing calls this directly

Calls 2

meanFunction · 0.85
sumFunction · 0.85

Tested by

no test coverage detected