-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-experiment.sh
executable file
·35 lines (30 loc) · 1 KB
/
run-experiment.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
cd chsimpy/
if ! command -v chsimpy-experiment &> /dev/null
then
chsimpy='python -m chsimpy.experiment'
else
chsimpy='chsimpy-experiment'
fi
runs=$1
procs=$2 # number of cpu processes
exportcsv='E,E2,SA'
kappatilde=0.0003580665255963738 # as used for the paper
Asrcs='uniform'
Aseed=85972 # seed for randomized values A0, A1
declare -a seeds=(2023) # seed for randomized values in composition matrix
declare -a c0s=(0.89)
for Asrc in $Asrcs; do
for seed in "${seeds[@]}"; do
for c0 in "${c0s[@]}"; do
fname="${c0}-${Asrc}-${seed}"
fname_ind="$fname-independent"
options="--png --yaml -N 512 -s ${seed} -R ${runs} --A-source=${Asrc} --A-seed=${Aseed} -P ${procs} --threshold=${c0} --cinit=${c0} --kappa-tilde=${kappatilde}"
options="${options} --export-csv=${exportcsv} -C"
# A0xA1
$chsimpy $options --file-id="${fname}" > "${fname}.txt"
# A0+A1
$chsimpy $options --file-id="${fname_ind}" --independent > "${fname_ind}.txt"
done
done
done