Create a rich table for displaying results.
(self, category: str, scores: Dict[str, float])
| 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.""" |