11 lines
684 B
Bash
11 lines
684 B
Bash
#!/bin/bash
|
|
# Cats/dogs v3: KNP AltAI columns (STDP) on learned k-means features, validation only.
|
|
cd /home/int/run/cats-dogs
|
|
run() { t=$1; p=$2; n=v3${DS:+_$DS}_t${t}_p${p}
|
|
[ -f $n/metrics.json ] && return
|
|
rm -rf $n
|
|
KNP_COL_PUNISH=$p python3 /mnt/c/knp/cats-dogs/run.py $n --data-dir /home/int/run/cats-dogs/features-v3 \
|
|
--dataset kmeans${DS:+_$DS}_validation --train 18000 --count 1000 --threshold $t --columns 20 --seed 42 --jitter 20 \
|
|
--quant weights --backend single > $n.log 2>&1; }
|
|
export -f run; export DS
|
|
for t in ${THRS:-1600 4000 8000 16000}; do for p in ${PUNS:-0 0.012 0.03}; do echo "$t $p"; done; done | xargs -P ${JOBS:-6} -n 2 bash -c 'run "$0" "$1"'
|