MCPcopy Create free account
hub / github.com/WorldModelBench-Team/WorldModelBench / create_results_table

Method create_results_table

evaluation.py:92–101  ·  view source on GitHub ↗

Create a rich table for displaying results.

(self, category: str, scores: Dict[str, float])

Source from the content-addressed store, hash-verified

90 self.console.print(f"{indent_str}[cyan]{category}:[/cyan] [yellow]{score:.2f}[/yellow]")
91
92 def create_results_table(self, category: str, scores: Dict[str, float]) -> Table:
93 """Create a rich table for displaying results."""
94 table = Table(title=f"{category} Results", show_header=True, header_style="bold magenta")
95 table.add_column("Metric", style="cyan")
96 table.add_column("Score", justify="right", style="yellow")
97
98 for metric, score in scores.items():
99 table.add_row(metric, f"{score:.2f}")
100
101 return table
102
103 def print_summary_panel(self, total_score: float, num_categories: int):
104 """Print a panel with summary information."""

Callers 1

process_resultsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected