|
4 | 4 | - Minimal header (batch IDs, timestamps, git hashes, notes for A and B) |
5 | 5 | - Schema-mismatch warning banner (if any metrics were dropped) |
6 | 6 | - Asymmetries section (only-in-A, only-in-B, failed-in-one) |
7 | | - - TL;DR block (one line per primary metric x forecast type) |
| 7 | + - Summary block (one line per primary metric x forecast type) |
8 | 8 | - Aggregate table (Overall, per forecast_type, per campaign) |
9 | 9 | - Win/Loss count table (per metric, per group) |
10 | 10 | - Per-launch diff table (3 sub-cells per metric: A | B | Δ) |
@@ -208,10 +208,10 @@ def info_block(label: str, b: BatchData) -> str: |
208 | 208 | ) |
209 | 209 |
|
210 | 210 |
|
211 | | -def _build_tldr_section(lines: list[str]) -> str: |
| 211 | +def _build_summary_section(lines: list[str]) -> str: |
212 | 212 | body = _html.escape("\n".join(lines)) if lines else "(no primary metrics available)" |
213 | 213 | return ( |
214 | | - "<div class='section'><h2>TL;DR</h2>" |
| 214 | + "<div class='section'><h2>Summary</h2>" |
215 | 215 | f"<pre style='background:#fff;padding:12px;border:1px solid #ccc;border-radius:4px;" |
216 | 216 | f"font-size:0.95em;line-height:1.5'>{body}</pre></div>" |
217 | 217 | ) |
@@ -377,7 +377,7 @@ def write_compare_html(out_dir: str, batch_a: BatchData, batch_b: BatchData, |
377 | 377 | per_launch: list[dict], aggregates: list[dict], |
378 | 378 | reforecast_section: Optional[dict], |
379 | 379 | asymmetries: dict, missing: dict, |
380 | | - available_metrics: list[dict], tldr_lines: list[str], |
| 380 | + available_metrics: list[dict], summary_lines: list[str], |
381 | 381 | plot_files: dict) -> str: |
382 | 382 | leading = ["Launch", "Forecast", "Campaign"] |
383 | 383 | per_launch_header = _build_metric_header(available_metrics, leading) |
@@ -456,7 +456,7 @@ def write_compare_html(out_dir: str, batch_a: BatchData, batch_b: BatchData, |
456 | 456 | <span style='color:#666'>Click any column header to sort ↑↓</span> |
457 | 457 | </div> |
458 | 458 |
|
459 | | - {_build_tldr_section(tldr_lines)} |
| 459 | + {_build_summary_section(summary_lines)} |
460 | 460 | {_build_asymmetries_section(asymmetries)} |
461 | 461 |
|
462 | 462 | <div class='section'> |
|
0 commit comments