(self)
| 182 | |
| 183 | @property |
| 184 | def metrics(self) -> Dict[str, Callable[[List[T_OUTPUT], List[T_TARGET]], Any]]: |
| 185 | return {"EM": lambda outputs, targets: len([1 for o, t in zip(outputs, targets) if o == t]) / min(len(outputs), len(targets))} |
| 186 | |
| 187 | def get_data(self) -> Dataset[T_INPUT, T_TARGET]: |
| 188 | raise NotImplementedError |
nothing calls this directly
no outgoing calls
no test coverage detected