fix(dashboard): plot live campaign-4 logs; derive ROOT from script location

This commit is contained in:
2026-08-24 08:30:04 +02:00
parent d2d205e6f6
commit 51e7f33ecb
2 changed files with 78 additions and 609 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
Pure-stdlib SVG output (matplotlib not available on this box).
Generates ONE file:
docs/campaign_dashboard.svg - five panels, current (v2) run only:
1. test-match win % vs opponents (campaign_v2_stdout.log eval lines)
1. test-match win % vs opponents (campaign_v4_stdout.log eval lines)
2. real-fight win % per opponent (training_log.jsonl, ~100-game buckets)
3. critic_loss / |actor_loss| (training_metrics.jsonl, shared log-y)
4. alpha temperature (training_metrics.jsonl, linear)
@@ -556,7 +556,7 @@ def main():
selftest()
return
args = [a for a in sys.argv[1:] if not a.startswith("-")]
campaign = Path(args[0]) if len(args) > 0 else ROOT / "campaign_v2_stdout.log"
campaign = Path(args[0]) if len(args) > 0 else ROOT / "campaign_v4_stdout.log"
metrics = Path(args[1]) if len(args) > 1 else ROOT / "training_metrics.jsonl"
games = Path(args[2]) if len(args) > 2 else ROOT / "training_log.jsonl"
outdir = Path(args[3]) if len(args) > 3 else ROOT / "docs"