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

Function _squad_metric

test/general/lm_eval/tasks/squad.py:35–37  ·  view source on GitHub ↗
(predictions, references)

Source from the content-addressed store, hash-verified

33
34
35def _squad_metric(predictions, references):
36 squad_metric = datasets.load_metric("squad_v2")
37 return squad_metric.compute(predictions=predictions, references=references)
38
39
40def _squad_agg(key, items):

Callers 1

_squad_aggFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected