MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / metric_values

Method metric_values

tests/tools.py:453–456  ·  view source on GitHub ↗
(self, metric_name: str)

Source from the content-addressed store, hash-verified

451 return list(self._metrics[metric_name].keys())
452
453 def metric_values(self, metric_name: str) -> List:
454 if not self.metric_exist(metric_name):
455 raise ValueError(f"Metric '{metric_name}' does not exist.")
456 return list(self._metrics[metric_name].values())
457
458 def metric_list(self, metric_prefix: str) -> List[str]:
459 return [name for name in self._metrics if name.startswith(metric_prefix)]

Callers 8

test_explorerMethod · 0.95
test_trainerMethod · 0.95
test_fully_async_modeMethod · 0.95
test_trainerMethod · 0.95
test_trainerMethod · 0.95
test_trainerMethod · 0.95
test_trainerMethod · 0.95

Calls 1

metric_existMethod · 0.95

Tested by 8

test_explorerMethod · 0.76
test_trainerMethod · 0.76
test_fully_async_modeMethod · 0.76
test_trainerMethod · 0.76
test_trainerMethod · 0.76
test_trainerMethod · 0.76
test_trainerMethod · 0.76