diff --git a/analysis/characterization/render_window1_figures.py b/analysis/characterization/render_window1_figures.py index 967d6a7..4b2d99e 100644 --- a/analysis/characterization/render_window1_figures.py +++ b/analysis/characterization/render_window1_figures.py @@ -48,6 +48,8 @@ def fig_b3_apc_vs_hotspot(comp: dict, upper: dict, out: Path) -> None: fig, ax = plt.subplots(figsize=(6, 4.5)) for r in comp["rows"]: pol = r["policy"] + if pol not in POLICY_ORDER: + continue ax.scatter(r["apc_ratio"] * 100, r["hotspot_index_ttft_p90"], s=180, color=POLICY_COLOR.get(pol, "gray"), label=pol, edgecolors="black", linewidths=0.5) @@ -276,9 +278,17 @@ def main() -> None: p = argparse.ArgumentParser() p.add_argument("--results-dir", type=Path, required=True) p.add_argument("--out-dir", type=Path, required=True) + p.add_argument("--exclude-policies", default="", + help="Comma-separated policies to drop from per-policy figures") args = p.parse_args() args.out_dir.mkdir(parents=True, exist_ok=True) + excluded = {s.strip() for s in args.exclude_policies.split(",") if s.strip()} + if excluded: + global POLICY_ORDER + POLICY_ORDER = [p for p in POLICY_ORDER if p not in excluded] + print(f"excluding policies: {sorted(excluded)} -> kept {POLICY_ORDER}") + comp = _load(args.results_dir, "b3_policy_comparison.json") upper = _load(args.results_dir, "apc_upper_w600.json") b2 = _load(args.results_dir, "b2_sweep_summary.json") diff --git a/figs/f4a_apc_loss.png b/figs/f4a_apc_loss.png index 759d965..ac88870 100644 Binary files a/figs/f4a_apc_loss.png and b/figs/f4a_apc_loss.png differ diff --git a/figs/f4c_apc_vs_hotspot_tradeoff.png b/figs/f4c_apc_vs_hotspot_tradeoff.png index 904e9e0..21f5800 100644 Binary files a/figs/f4c_apc_vs_hotspot_tradeoff.png and b/figs/f4c_apc_vs_hotspot_tradeoff.png differ diff --git a/figs/f4c_per_worker_ttft.png b/figs/f4c_per_worker_ttft.png index 6a77bd7..9f27466 100644 Binary files a/figs/f4c_per_worker_ttft.png and b/figs/f4c_per_worker_ttft.png differ diff --git a/figs/f6_e2e_latency_bars.png b/figs/f6_e2e_latency_bars.png index 5558926..9a4be3a 100644 Binary files a/figs/f6_e2e_latency_bars.png and b/figs/f6_e2e_latency_bars.png differ