: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)
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected