Add stick-probability-harness

This commit is contained in:
Joshua Coles 2023-03-01 22:11:37 +00:00
parent 5f386b3ae0
commit 2b44dde52f
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,4 @@
## Data Structure
All `.csv` files in the same directory should be of the same system config and contain all information required for
their reproduction.

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# NOTE: Requires GNU parallel
MODEL="models/stick-probability"
mkdir -p data/stick-probability
PROBABILITIES=$(seq 0.1 0.1 1)
for i in $PROBABILITIES; do
mkdir data/stick-probability/"$i"
done
MAX_PARTICLES=2000
parallel "$MODEL" '{1}' $MAX_PARTICLES '{2}' 'data/stick-probability/{2}/{1}.csv' ::: {1..20} ::: $PROBABILITIES