MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / print_table

Function print_table

test.py:18–30  ·  view source on GitHub ↗
(title, metrics, logger=None)

Source from the content-addressed store, hash-verified

16
17
18def print_table(title, metrics, logger=None):
19 table = Table(title=title)
20
21 table.add_column("Metrics", style="cyan", no_wrap=True)
22 table.add_column("Value", style="magenta")
23
24 for key, value in metrics.items():
25 table.add_row(key, str(value))
26
27 console = get_console()
28 console.print(table, justify="center")
29
30 logger.info(metrics) if logger else None
31
32
33def get_metric_statistics(values, replication_times):

Callers 1

mainFunction · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected