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

Method process_results

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

Source from the content-addressed store, hash-verified

415 return ll_yes, ll_no
416
417 def process_results(self, doc, results):
418 ll_yes, ll_no = results
419 gold = doc["label"]
420 pred = ll_yes > ll_no
421 return {
422 "acc": pred == gold,
423 "f1": (gold, pred),
424 }
425
426 def higher_is_better(self):
427 return {"acc": True, "f1": True}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected