-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_synthetic_shift.sh
executable file
·40 lines (37 loc) · 1.68 KB
/
run_synthetic_shift.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
36
37
38
39
40
#!/bin/bash
# initialize variables with default values
TRIALS_PER_ORACLE_LIMIT=-1
NUM_PROCESSES=48
# parse arguments
while [[ $# -gt 0 ]]; do
case $1 in
-t|--trials-per-oracle-limit)
TRIALS_PER_ORACLE_LIMIT="$2"
shift # past argument
shift # past value
;;
-n|--num-processes)
NUM_PROCESSES="$2"
shift # past argument
shift # past value
;;
-*|--*)
echo "ERROR: unknown option"
exit 1
;;
*)
;;
esac
done
for num_shifts in 1 2 3 4 5
do
for vec in {0..19}
do
echo "--- uniform num_shifts ${num_shifts} vec ${vec} ---"
python simulator.py configs/final-synthetic-uniform-configs/config_num_shifts_${num_shifts}_vec_${vec}.json --trials-per-oracle-limit ${TRIALS_PER_ORACLE_LIMIT} --num-processes ${NUM_PROCESSES} --results-dir results-uniform-num-shifts-${num_shifts}-vec-${vec} --single-budget True
echo "--- static num_shifts ${num_shifts} vec ${vec} ---"
python simulator.py configs/final-synthetic-static-configs/config_num_shifts_${num_shifts}_vec_${vec}.json --trials-per-oracle-limit ${TRIALS_PER_ORACLE_LIMIT} --num-processes ${NUM_PROCESSES} --segments 5 --results-dir results-static-num-shifts-${num_shifts}-vec-${vec} --single-budget True
echo "--- InQuest num_shifts ${num_shifts} vec ${vec} ---"
python simulator.py configs/final-synthetic-inquest-configs/config_num_shifts_${num_shifts}_vec_${vec}.json --trials-per-oracle-limit ${TRIALS_PER_ORACLE_LIMIT} --num-processes ${NUM_PROCESSES} --segments 5 --alpha 0.8 --results-dir results-inquest-num-shifts-${num_shifts}-vec-${vec} --single-budget True
done
done