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

Method process_results

test/general/lm_eval/tasks/scrolls.py:304–313  ·  view source on GitHub ↗
(self, doc, results)

Source from the content-addressed store, hash-verified

302 return {"f1": "f1"}
303
304 def process_results(self, doc, results):
305 if doc["is_yes_no"]:
306 prediction = " yes" if results[0] > results[1] else " no"
307 elif len(results[0].strip()) == 0:
308 prediction = "Unanswerable"
309 else:
310 prediction = results[0]
311 return {
312 "f1": (prediction, doc["outputs"])
313 }
314
315 def construct_requests(self, doc, ctx):
316 if doc["is_yes_no"]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected