:returns: {str: [float] -> float} A dictionary where keys are the names of submetrics and values are functions that aggregate a list of metrics
(self)
| 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 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected