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

Method __call__

test/general/lm_eval/metrics.py:197–204  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

195 self.n = n
196
197 def __call__(self, v):
198 i, xs = v
199 rnd = random.Random()
200 rnd.seed(i)
201 res = []
202 for _ in range(self.n):
203 res.append(self.f(rnd.choices(xs, k=len(xs))))
204 return res
205
206
207def bootstrap_stderr(f, xs, iters):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected