#!/bin/bash # usage: bash run_c1.sh INIT MINUTES_A MINUTES_B C1 campaign: refine INIT at its N, then at 2N (upsampled); exact-score both I=$1; MA=${2:-35}; MB=${3:-35}; cd "$(dirname "$0")" py -3.15 c1_opt.py --init "$I" --minutes $MA --beta0 1e10 --beta1 1e14 --lr 1e-10 --report 200000 --out c1/stageA.npy | tail -1 py -3.15 c1_to_cert.py c1/stageA.npy c1/stageA_cert.json && py -3.15 c1_score.py c1/stageA_cert.json py -3.15 c1_opt.py --init c1/stageA.npy --upsample 2 --minutes $MB --beta0 1e10 --beta1 1e14 --lr 1e-10 --report 200000 --out c1/stageB.npy | tail -1 py -3.15 c1_to_cert.py c1/stageB.npy c1/stageB_cert.json && py -3.15 c1_score.py c1/stageB_cert.json