-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_lesion_study.sh
executable file
·41 lines (37 loc) · 1.99 KB
/
run_lesion_study.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 dataset in customer-support archie11 jackson17 taipei13 venice20 rialto20
do
echo "------ Running lesion experiments on dataset ${dataset} ------"
echo "--- fixed strata dyn. alloc. -- no pred ${dataset} ---"
python simulator.py configs/final-fixed-strata-dynamic-alloc/${dataset}-no-predicate-mean.json --trials-per-oracle-limit ${TRIALS_PER_ORACLE_LIMIT} --num-processes ${NUM_PROCESSES} --alpha 0.8 --segments 5 --results-dir results-${dataset}-0.8-5-fixed-strata-no-pred
echo "--- dyn. strata fixed alloc. -- no pred ${dataset} ---"
python simulator.py configs/final-dynamic-strata-fixed-alloc/${dataset}-no-predicate-mean.json --trials-per-oracle-limit ${TRIALS_PER_ORACLE_LIMIT} --num-processes ${NUM_PROCESSES} --alpha 0.8 --segments 5 --results-dir results-${dataset}-0.8-5-fixed-alloc-no-pred
# echo "fixed strata dyn. alloc. -- pred gt0 ${dataset}"
# python simulator.py configs/final-fixed-strata-dynamic-alloc/${dataset}-predicate-gt0-mean.json --trials-per-oracle-limit ${TRIALS_PER_ORACLE_LIMIT} --num-processes ${NUM_PROCESSES} --alpha 0.8 --segments 5 --results-dir results-${dataset}-0.8-5-fixed-strata-pred-gt0
# echo "dyn. strata fixed alloc. -- pred gt0 ${dataset}"
# python simulator.py configs/final-dynamic-strata-fixed-alloc/${dataset}-predicate-gt0-mean.json --trials-per-oracle-limit ${TRIALS_PER_ORACLE_LIMIT} --num-processes ${NUM_PROCESSES} --alpha 0.8 --segments 5 --results-dir results-${dataset}-0.8-5-fixed-alloc-pred-gt0
done