diff options
| author | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-21 06:38:55 -0500 |
|---|---|---|
| committer | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-21 06:38:55 -0500 |
| commit | 215acff518eea2d6d8a5bd7c90c398f49cc3b41b (patch) | |
| tree | 8c79739d8b0a614ce76e685a3eff323d4cdb1742 /experiments/run_v2.sh | |
chore: capture initial SDIL project state
Diffstat (limited to 'experiments/run_v2.sh')
| -rw-r--r-- | experiments/run_v2.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/experiments/run_v2.sh b/experiments/run_v2.sh new file mode 100644 index 0000000..1027ed7 --- /dev/null +++ b/experiments/run_v2.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# Corrected sweep (sigma-scale fixed). Mode-specific LR. +# Usage: bash run_v2.sh <dataset> "<depths>" <residual> <act> "<seeds>" <ep> <pfx> +set -u; cd "$(dirname "$0")/.." +PY=/home/yurenh2/miniconda3/envs/ep_pascal/bin/python3 +export OMP_NUM_THREADS=2 +DS="$1"; DEPTHS="$2"; RES="$3"; ACT="$4"; SEEDS="$5"; EP="$6"; PFX="$7" +OUT=results; LOGS=logs/v2; mkdir -p "$OUT" "$LOGS"; PROG="$LOGS/progress.txt" +echo "=== v2 $(date) ds=$DS depths=[$DEPTHS] res=$RES act=$ACT seeds=[$SEEDS] ===" >> "$PROG" +run(){ local tag="$1"; shift; [ -f "$OUT/$tag.json" ] && { echo "skip $tag">>"$PROG"; return; } + echo ">>> $tag $(date +%H:%M:%S)">>"$PROG" + $PY experiments/run.py --tag "$tag" --outdir "$OUT" "$@" > "$LOGS/$tag.log" 2>&1 \ + && grep -h DONE "$LOGS/$tag.log">>"$PROG" || echo "FAIL $tag">>"$PROG"; } +for s in $SEEDS; do for d in $DEPTHS; do + run "${PFX}_${DS}_bp_d${d}_s${s}" --mode bp --dataset $DS --depth $d --width 256 --act $ACT --residual $RES --epochs $EP --seed $s --eta 0.05 + run "${PFX}_${DS}_dfa_d${d}_s${s}" --mode dfa --dataset $DS --depth $d --width 256 --act $ACT --residual $RES --epochs $EP --seed $s --eta 0.05 + run "${PFX}_${DS}_sdil_d${d}_s${s}" --mode sdil --dataset $DS --depth $d --width 256 --act $ACT --residual $RES --epochs $EP --seed $s --eta 0.02 --eta_A 0.02 --pert_ndirs 8 +done; done +echo "=== v2 done $(date) ===" >> "$PROG" |
