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

Method process_results

test/general/lm_eval/tasks/superglue.py:76–82  ·  view source on GitHub ↗
(self, doc, results)

Source from the content-addressed store, hash-verified

74 return ll_yes, ll_no
75
76 def process_results(self, doc, results):
77 ll_yes, ll_no = results
78 gold = doc["label"]
79
80 acc = 1.0 if (ll_yes > ll_no) == gold else 0.0
81
82 return {"acc": acc}
83
84 def higher_is_better(self):
85 return {"acc": True}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected