The single reader: data.py of the tools repository (sibling ~/aimsight-tools), located once in categories.py

scripts/data.py removed; the detectors' standalone CLIs go (categories.py runs them).
Benchmark identical to the baseline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-16 15:25:01 +01:00
1 parent 908369b9e9
commit 5e9a7aa9d1
11 files changed
+16 -215

No files matched your search

+1 -9
View File
@@ -47,13 +47,10 @@ A simpler version (share of targets rejected above their threshold, without comp
was tried on 2026-10-24 and dropped: worse on five data sets out of six (git history of Support-Agent,
detectors/archive/visibilite_simple.py).
"""
import os
import statistics
import sys
from datetime import timedelta
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) # data.py, next to it
from data import iso, load # noqa: E402
from data import iso
K_MAD = 10 # tuned on E-001 (fog: 11 to 57 MAD) and E-005 (rain, trains: 10 to 70 MAD)
FACTOR = 2 # drops sensors with a near-zero MAD (E-004: PWD_REF10 ×1.6 at 14 MAD, E-005)
@@ -337,8 +334,3 @@ def heat_shimmer(measurements):
"sensors": sorted(s for s, v in agit.items() if v >= RATIO),
})
return episodes
if __name__ == "__main__":
for e in detect(load(sys.argv[1])):
print(e["start"], "→", e["end"], e["label"], f"| {len(e['sensors'])}:", ",".join(e["sensors"][:8]), "|", e["text"])