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

Method process_results

test/general/lm_eval/tasks/glue.py:469–476  ·  view source on GitHub ↗
(self, doc, results)

Source from the content-addressed store, hash-verified

467 return ll_yes, ll_no
468
469 def process_results(self, doc, results):
470 ll_yes, ll_no = results
471 gold = doc["label"]
472 pred = ll_yes > ll_no
473 return {
474 "acc": pred == gold,
475 "f1": (gold, pred),
476 }
477
478 def higher_is_better(self):
479 return {"acc": True, "f1": True}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected