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

Method compute_metrics

test/general/lm_eval/tasks/scrolls.py:211–214  ·  view source on GitHub ↗
(samples)

Source from the content-addressed store, hash-verified

209
210 def _make_compute_metrics(self, value):
211 def compute_metrics(samples):
212 predictions, references = zip(*samples) # unzip, if you will
213 computed = self.metric.compute(predictions=predictions, references=references)
214 return computed[value]
215 return compute_metrics
216
217 def aggregation(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected