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

Method log

tests/utils/plugins/my_monitor.py:20–24  ·  view source on GitHub ↗

Log metrics.

(self, data: dict, step: int, commit: bool = False)

Source from the content-addressed store, hash-verified

18 self.console_logger = get_logger(__name__)
19
20 def log(self, data: dict, step: int, commit: bool = False) -> None:
21 """Log metrics."""
22 for key in data:
23 self.logger.add_scalar(key, data[key], step)
24 self.console_logger.info(f"Step {step}: {data}")
25
26 def close(self) -> None:
27 self.logger.close()

Callers 2

runMethod · 0.45
new_finish_explore_stepFunction · 0.45

Calls

no outgoing calls

Tested by 2

runMethod · 0.36
new_finish_explore_stepFunction · 0.36