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

Method process_results

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

Source from the content-addressed store, hash-verified

202 return ll_choice1, ll_choice2
203
204 def process_results(self, doc, results):
205 gold = doc["label"]
206 pred = np.argmax(results)
207 acc = 1.0 if pred == gold else 0.0
208
209 return {"acc": acc}
210
211 def higher_is_better(self):
212 return {"acc": True}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected