sessions of 2026-11-18 (the optimization campaign; three runs without summary, interrupted and rerun)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-18 17:47:59 +01:00
1 parent 8a81c53cd9
commit 0cfbd1b7bc
363 files changed
+30822

No files matched your search

@@ -0,0 +1,23 @@
# Per labelled station (benchmark range): the Slow drift episodes of displacement.drift (with 3 days of history) and the Displacement labels, to compare. Args: <detectors dir> <labels folder> <data folder> [STATION,...]
import sys, json
from datetime import timedelta
from pathlib import Path
det = Path(sys.argv[1]).resolve()
sys.path[:0] = [str(det / "bench"), str(det / "scripts")]
import score, regression, displacement as D
from data import load, parse_time
only = sys.argv[4].split(",") if len(sys.argv) > 4 else None
for path in sorted(Path(sys.argv[2]).glob("*.jsonl")):
st = path.stem
if only and st not in only:
continue
start, end = regression.label_range(path)
ms = load(str(Path(sys.argv[3]) / st))
h, b = parse_time(start) - timedelta(days=3), parse_time(end)
chunk = {s: k for s, v in ms.items() if (k := [m for m in v if h <= m["t"] < b])}
print(f"== {st} {start} → {end}")
for e in score.read_labels(str(path), start, end):
if e["family"] == "Displacement":
print(" LABEL", e["id"], e["start"], e["end"], e["description"][:90])
for e in D.drift(chunk):
print(" drift", e["start"], e["end"], e["sensors"][0], e["text"].split(": ")[1][:30])