AsianPlayer/TriDrive / code /eval /run_shift_twins_final.sh
AsianPlayer's picture
download
raw
1.19 kB
#!/usr/bin/env bash
# cwm3/eval/run_shift_twins_final.sh — K5 shifted-twin pair-AUROC@3s of the FINAL main model vs indep (eval/shift_twin.py, read-only, --skip-probes), driver populations
# from the v2 CAUSAL kin packs (the targets the U base was trained on); tags final_s<k>_allminus_vs_indep (kill_report_cwm3.py --twin-tag). Idempotent.
# bash eval/run_shift_twins_final.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
a=I1_all_minus_road2drv_s${s}_final; b=I1_indep_s${s}_final; tag="final_s${s}_allminus_vs_indep"
[[ -f results/runs/$a/PRED_DONE && -f results/runs/$b/PRED_DONE ]] || { echo "skip $tag (runs not finished)"; continue; }
for reg in manual engaged; do
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/$a --b results/runs/$b --regime $reg --events hand_return,hand_leave,head_turn_onset --tag "$tag" --skip-probes --kin-source causal_routes --kin-version v2 2>&1 | grep -E "pair_auroc|Error|Traceback|appended" | cut -c1-200
done
done
echo TWINS_FINAL_DONE

Xet Storage Details

Size:
1.19 kB
·
Xet hash:
ab7f361c5b7058c12b2f24f740291b1f6cc30e956ad40e155ca90bb485152c8d

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