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

Method higher_is_better

test/general/lm_eval/tasks/squad.py:204–219  ·  view source on GitHub ↗

:returns: {str: bool} A dictionary where keys are the names of submetrics and values are whether a higher value of the submetric is better

(self)

Source from the content-addressed store, hash-verified

202 }
203
204 def higher_is_better(self):
205 """
206 :returns: {str: bool}
207 A dictionary where keys are the names of submetrics and values are
208 whether a higher value of the submetric is better
209 """
210 return {
211 "exact": True, # Exact match (the normalized answer exactly match the gold answer)
212 "f1": True, # The F-score of predicted tokens versus the gold answer
213 "HasAns_exact": True, # Exact match (the normalized answer exactly match the gold answer)
214 "HasAns_f1": True, # The F-score of predicted tokens versus the gold answer
215 "NoAns_exact": True, # Exact match (the normalized answer exactly match the gold answer)
216 "NoAns_f1": True, # The F-score of predicted tokens versus the gold answer
217 "best_exact": True, # Best exact match (with varying threshold)
218 "best_f1": True, # Best F1 (with varying threshold)
219 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected