-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_epi_real.sh
133 lines (102 loc) · 2.4 KB
/
run_epi_real.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/bash
#export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/fmazza/julia/lib/julia"
<<EOF
type_graph="i_bird"
N=330
d=10
height=3
lambda=0.1
mu=0.
t_limit=15
p_edge=1
nsrc=1
seed=8
scale=1.8
gamma=6e-5
small_lambda_limit=100
path_contacts="$(pwd)/testbench/data/i_bird_contacts.npz"
type_graph="data_deltas"
N=219
d=10
height=3
lambda=0.1
mu=0.
t_limit=15
p_edge=1
nsrc=1
seed=7
scale=1.8
gamma=2e-3
small_lambda_limit=0
path_contacts="$(pwd)/results/work_15_contacts.npz"
type_graph="i_bird"
N=100
d=10
height=3
lambda=0.03
mu=0.
t_limit=12
p_edge=1
## 1 src last obs -> seed 6
#seed=4
#nsrc=2
seed=6
nsrc=1
scale=2
gamma=1e-3
small_lambda_limit=0
path_contacts="$(pwd)/testbench/data/work_13_contacts.npz"
EOF
type_graph="data_gamma"
N=2000
d=10
height=3
lambda=0.04
mu=0.
t_limit=16
p_edge=1
nsrc=1
seed=8
scale=1.8
gamma=0.038
small_lambda_limit=0
path_contacts="testbench/data/openABM_2k_contacts.npz"
p_source=-2
pr_sympt=0.
n_test_rnd=20
delay_test_p="0. 0.4 0.5 0.6"
<<EFF
pr_sympt=0.4
n_test_rnd=1
delay_test_p="0. 0.1 0.5 0.6"
EFF
tobs_min=0
min_ninf=150
init_name="${n_test_rnd}rnd_pr03_"
EXEC="python -u"
SCRIPT=" testbench/run_epi.py"
#init_name="exp_"
#path_dir="$(pwd)/results/epijl/${type_graph}_${nsrc}src/N_${N}_${n_test_rnd}rnd/"
path_dir="$(pwd)/results/gr/${type_graph}/epijl/N_${N}_${nsrc}src/${n_test_rnd}rnd_to${tobs_min}/"
#path_dir="$(pwd)/results/epijl/${type_graph}_${nsrc}src/N_${N}_${n_test_rnd}rnd/lessobs/"
GEN_GRAPH="--type_graph $type_graph -N $N -d $d --height $height -T $t_limit --lambda $lambda --mu $mu --p_edge $p_edge --n_sources $nsrc --scale $scale"
EXTRA_GEN="--gamma $gamma --path_contacts $path_contacts --small_lambda_limit $small_lambda_limit --ninf_min $min_ninf"
EXTRA_FLAGS=" --init_name_file $init_name --path_dir $path_dir "
SPARSE_OBS="--sparse_obs --sparse_rnd_tests $n_test_rnd --pr_sympt $pr_sympt --delay_test_p $delay_test_p --sp_obs_min_t $tobs_min --sp_obs_new "
EPIFL="--p_source $p_source --max_iter 600 --eps_conv 1e-5" # --seeds_range 0 1"
num_conf=90#$((60-37))
st_conf=110
seed_st=0
nseed=2
seed_end=$(( $seed_st + $nseed - 1 ))
#echo $EXEC $SCRIPT
mkdir -p $path_dir
for seed in $seed #$(seq $seed_st $seed_end)
do
#if [ $seed -eq 45 ]; then
# continue
#fi
echo $seed
#n_conf=$(( $st_conf+$num_conf ))
$EXEC $SCRIPT $GEN_GRAPH $EXTRA_GEN --seed $seed $EXTRA_FLAGS $SPARSE_OBS $EPIFL --start_conf $st_conf --num_conf $num_conf
done