cellquant / reports /cv_v2 /train_queue.sh
stevafernandes's picture
Deploy CellQuant
812b6ee verified
Raw History Blame Contribute Delete
631 Bytes
#!/bin/bash
# Lock-based fold queue for the v2 recipe: several instances may run concurrently with different orders.
cd "$(dirname "$0")/../.."
for K in "$@"; do
[ -f "runs/cv_v2/fold_$K.pt" ] && { echo "skip $K (done)"; continue; }
mkdir "runs/cv_v2/fold_$K.lock" 2>/dev/null || { echo "skip $K (claimed)"; continue; }
echo "=== fold $K start $(date) ==="
python3 -I train.py --data-dir /Users/slf20757/Desktop/Peyton --holdout "$K" --iters 3000 --val-every 500 --out "runs/cv_v2/fold_$K.pt" --device mps > "runs/cv_v2/train_$K.log" 2>&1 || echo "FOLD $K FAILED"
echo "=== fold $K done $(date) ==="
done
echo QUEUE_DONE