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

Method log

trinity/utils/monitor.py:152–155  ·  view source on GitHub ↗

Log metrics.

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

Source from the content-addressed store, hash-verified

150 self.log(data={table_name: experiences_table}, step=step)
151
152 def log(self, data: dict, step: int, commit: bool = False) -> None:
153 """Log metrics."""
154 self.logger.log(data, step=step, commit=commit)
155 self.console_logger.info(f"{self.format_data_str(data, step)}")
156
157 def close(self) -> None:
158 self.logger.finish()

Callers 1

log_tableMethod · 0.95

Calls 2

format_data_strMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected