-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathall_experiments.sh
70 lines (68 loc) · 2.66 KB
/
all_experiments.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
dir=$1
mkdir -p $dir
echo $dir
it=0
for dgp_two in 0;
do
for samples in 1000;
do
for strength in .5 .7 .9;
do
for n_critics in 50;
do
for dimension in 1 2 3 4 5 6 7 8 9 10;
do
for num_steps in 400;
do
for radius in 50;
do
for jitter in 1;
do
for func in 'abs' '2dpoly' 'sigmoid' 'step' '3dpoly' 'sin' 'linear' 'rand_pw';
do
for number in $(seq 1 100);
do
echo $it >> "${dir}/overall_log.txt"
echo "Iteration ${number}" &>> "${dir}/log_${it}.txt"
python monte_carlo.py --iteration $number --dir $dir --num_instruments $dimension --n_samples $samples --num_steps $num_steps --func $func --radius $radius --n_critics $n_critics --strength $strength --jitter $jitter --dgp_two $dgp_two &>> "${dir}/log_${it}.txt"
it=$((it+1))
done
done
done
done
done
done
done
done
done
done
for dgp_two in 0;
do
for samples in 1000;
do
for strength in .5 .7 .9;
do
for n_critics in 50;
do
for dimension in 1 2 3 4 5 6 7 8 9 10;
do
for num_steps in 1000;
do
for radius in 50;
do
for jitter in 1;
do
for func in 'abs' '2dpoly' 'sigmoid' 'step' '3dpoly' 'sin' 'linear' 'rand_pw';
do
echo $it >> "${dir}/overall_log.txt"
python combine.py --dir $dir --num_instruments $dimension --n_samples $samples --num_steps $num_steps --func $func --radius $radius --n_critics $n_critics --strength $strength --jitter $jitter --dgp_two $dgp_two &>> "${dir}/log_${it}.txt"
it=$((it+1))
done
done
done
done
done
done
done
done
done