(samples)
| 209 | |
| 210 | def _make_compute_metrics(self, value): |
| 211 | def compute_metrics(samples): |
| 212 | predictions, references = zip(*samples) # unzip, if you will |
| 213 | computed = self.metric.compute(predictions=predictions, references=references) |
| 214 | return computed[value] |
| 215 | return compute_metrics |
| 216 | |
| 217 | def aggregation(self): |
nothing calls this directly
no outgoing calls
no test coverage detected