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

Function _squad_agg

lm-eval-harness/lm_eval/tasks/based_squadv2/task.py:15–17  ·  view source on GitHub ↗
(key, items)

Source from the content-addressed store, hash-verified

13
14
15def _squad_agg(key, items):
16 predictions, references = zip(*items)
17 return _squad_metric(predictions=predictions, references=references).get(key, 0)
18
19
20class BasedSQUADCompletion(ConfigurableTask):

Callers

nothing calls this directly

Calls 1

_squad_metricFunction · 0.70

Tested by

no test coverage detected