our_knp/objects/grid_v3.sh
int 52d91e974f Cats/dogs v3 learned features for KNP, punishment in cats_dogs, readout variants
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 21:54:09 +03:00

11 lines
651 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_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_validation --train 18000 --count 1000 --threshold $t --columns 20 --seed 42 --jitter 20 \
--quant weights --backend single > $n.log 2>&1; }
export -f run
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"'