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

Method aggregation

test/general/lm_eval/tasks/winogrande.py:119–125  ·  view source on GitHub ↗

:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that aggregate a list of metrics

(self)

Source from the content-addressed store, hash-verified

117 return {"acc": np.argmax(results) == self.answer_to_num[doc["answer"]]}
118
119 def aggregation(self):
120 """
121 :returns: {str: [float] -> float}
122 A dictionary where keys are the names of submetrics and values are
123 functions that aggregate a list of metrics
124 """
125 return {"acc": mean}
126
127 def higher_is_better(self):
128 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected