12 lines
977 B
Bash
12 lines
977 B
Bash
#!/bin/bash
|
|||
|
|
# Runs the four checks of the request on the live detectors and writes <name>-<tag>.txt in the session folder, then compares the benchmark against PREV. Args: TAG PREV_BENCHMARK
|
||
|
|
set -e
|
||
|
|
R=/home/maxime/aimsight-optimizer; S=$R/sessions/NORDEND_2026-08-17T0515_2026-11-07T1400_20261118T1024Z; TAG=$1; PREV=$2
|
||
|
|
cd $R
|
||
|
|
python3 detectors/scripts/categories.py data/NORDEND --from 2026-08-17 --to 2026-11-08 > $S/events-$TAG.txt 2>&1
|
||
|
|
python3 detectors/bench/sensors.py data/NORDEND --from 2026-08-17 --to 2026-11-08 > $S/sensors-$TAG.txt 2>&1
|
||
|
|
python3 detectors/bench/score.py data/NORDEND --labels labeling/auto/NORDEND.jsonl --from 2026-08-17 --to 2026-11-08 > $S/range-$TAG.txt 2>&1
|
||
|
|
python3 detectors/bench/regression.py --labels labeling/auto --data data > $S/benchmark-$TAG.txt 2>&1
|
||
|
|
python3 detectors/bench/compare.py $PREV $S/benchmark-$TAG.txt > $S/compare-$TAG.txt 2>&1 || true
|
||
|
|
grep -c skipped $S/events-$TAG.txt $S/benchmark-$TAG.txt || true
|
||
|
|
cat $S/compare-$TAG.txt
|