MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / sample_stddev

Function sample_stddev

lm-eval-harness/lm_eval/api/metrics.py:207–209  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

205
206
207def sample_stddev(arr):
208 mu = mean(arr)
209 return math.sqrt(sum([(x - mu) ** 2 for x in arr]) / (len(arr) - 1))
210
211
212def mean_stderr(arr):

Callers 2

mean_stderrFunction · 0.85
bootstrap_stderrFunction · 0.85

Calls 1

meanFunction · 0.85

Tested by

no test coverage detected