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

Method process_results

test/general/lm_eval/tasks/blimp.py:97–105  ·  view source on GitHub ↗
(self, doc, results)

Source from the content-addressed store, hash-verified

95 ]
96
97 def process_results(self, doc, results):
98 likelihood1, likelihood2 = results
99
100 # the model got this case right iff the good sentence scored higher than the bad sentence
101 acc = 1.0 if likelihood1 > likelihood2 else 0.0
102
103 return {
104 "acc": acc,
105 }
106
107 def higher_is_better(self):
108 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected