AsianPlayer/TriDrive / code /eval /run_shift_twins.sh
AsianPlayer's picture
download
raw
1.19 kB
#!/usr/bin/env bash
# cwm3/eval/run_shift_twins.sh — K5 shifted-twin pair-AUROC (eval/shift_twin.py, read-only use, --skip-probes: the joint checkpoints are not a bare
# DriverBranch) for I1 all vs indep per seed and regime; idempotent (skips tags already in results/shift_twin.csv; needs both runs PRED_DONE).
# bash eval/run_shift_twins.sh "0 1 2"
set -u
cd "$(dirname "$0")/.."
PY=python
export OMP_NUM_THREADS=4 MKL_NUM_THREADS=4
for s in ${1:-0 1 2}; do
for pair in "all indep" "none indep" "road2drv indep"; do
set -- $pair; a=$1; b=$2
[[ -f results/runs/I1_${a}_s${s}/PRED_DONE && -f results/runs/I1_${b}_s${s}/PRED_DONE ]] || { echo "skip I1_s${s}_${a}_vs_${b} (runs not finished)"; continue; }
for reg in manual engaged; do
tag="I1_s${s}_${a}_vs_${b}"
grep -q ",${tag},${reg}," results/shift_twin.csv 2>/dev/null && { echo "have $tag $reg"; continue; }
echo "== $tag $reg"
$PY eval/shift_twin.py --a results/runs/I1_${a}_s${s} --b results/runs/I1_${b}_s${s} --regime $reg --events hand_return,hand_leave,head_turn_onset --tag "$tag" --skip-probes 2>&1 | grep -E "pair_auroc|Error|Traceback|appended" | cut -c1-200
done
done
done

Xet Storage Details

Size:
1.19 kB
·
Xet hash:
debcbab466a13ee92e0a09afbe3efc01a077e2b814fbdaf8825785a826b889ec

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.