MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / metrics

Method metrics

AgentBench.old/src/task.py:184–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected