13 lines
1.1 KiB
Bash
13 lines
1.1 KiB
Bash
#!/bin/bash
|
|||
|
|
# Runs the four checks of the session (events, sensors, range, benchmark) on the live detectors, writes <check>-S<n>.txt and compares with the previous state.
|
||
|
|
# Usage: bash checks.sh <n> <previous suffix, e.g. S2 or before> (run from the Optimizer root)
|
||
|
|
S=sessions/ALASKA_2026-11-04T2358_2026-11-16T1217_20261118T0951Z
|
||
|
|
n=$1; prev=$2
|
||
|
|
python3 detectors/scripts/categories.py data/ALASKA --from 2026-11-04 --to 2026-11-17 > $S/events-S$n.txt 2>&1
|
||
|
|
python3 detectors/bench/sensors.py data/ALASKA --from 2026-11-04 --to 2026-11-17 > $S/sensors-S$n.txt 2>&1
|
||
|
|
python3 detectors/bench/score.py data/ALASKA --labels labeling/auto/ALASKA.jsonl --from 2026-11-04 --to 2026-11-17 > $S/range-S$n.txt 2>&1
|
||
|
|
python3 detectors/bench/regression.py --labels labeling/auto --data data > $S/benchmark-S$n.txt 2>&1
|
||
|
|
echo "== events"; diff $S/events-$prev.txt $S/events-S$n.txt
|
||
|
|
echo "== range"; diff $S/range-$prev.txt $S/range-S$n.txt
|
||
|
|
echo "== benchmark"; python3 detectors/bench/compare.py $S/benchmark-$prev.txt $S/benchmark-S$n.txt
|
||
|
|
echo "== skipped"; grep -c skipped $S/benchmark-S$n.txt $S/events-S$n.txt
|