-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_epi_RRG.sh
119 lines (87 loc) · 1.86 KB
/
run_epi_RRG.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
#!/bin/bash
<<EOF
## 1 src SI (mu=0)-> lam=0.035
type_graph="proximity"
seed=9
N=60
d=10
height=3
lambda=0.035
mu=0.
t_limit=15
p_edge=1
nsrc=1
scale=1.8
gamma=1e-3
small_lambda_limit=0
path_contacts="testbench/data/work_13_contacts.npz"
## 1 src SI (mu=0)-> lam=0.035
type_graph="proximity"
seed=9
N=200
d=10
height=3
lambda=0.035
mu=0.
t_limit=15
p_edge=1
nsrc=1
scale=1.8
type_graph="i_bird"
seed=9
N=95
d=10
height=3
lambda=0.1
mu=0.
t_limit=15
p_edge=1
nsrc=1
scale=1.8
EOF
type_graph="RRG"
seed=7
#N=200
#d=15
N=1000
d=20
height=3
lambda=0.035
mu=0.
t_limit=15
p_edge=1
nsrc=1
scale=2
gamma=1e-3
small_lambda_limit=0
path_contacts=".."
p_source=0.5e-2
SCRIPT=" testbench/run_epi.py"
pr_sympt=0.5
#n_test_rnd=3
n_test_rnd=1
delay_test_p="0. 0.4 0.5 0.6"
init_name="sp_${n_test_rnd}rnd_"
#init_name="exp_"
#path_dir="$(pwd)/results/epijl/${type_graph}_${nsrc}src/${n_test_rnd}rnd/" #/N_${N}/"
path_dir="$(pwd)/results/epijl/${type_graph}_${nsrc}src/N_${N}_${n_test_rnd}rnd/"
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"
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"
EPIFL="--p_source $p_source --max_iter 2000 --eps_conv 1e-10 --seeds_range 0 51"
num_conf=1
st_conf=0
seed_st=0
nseed=2
seed_end=$(( $seed_st + $nseed - 1 ))
mkdir -p $path_dir
for seed in 0 #$(seq $seed_st $seed_end)
do
#if [ $seed -eq 45 ]; then
# continue
#fi
echo $seed
#n_conf=$(( $st_conf+$num_conf ))
python -u $SCRIPT $GEN_GRAPH $EXTRA_GEN --seed $seed $EXTRA_FLAGS $SPARSE_OBS $EPIFL --start_conf $st_conf --num_conf $num_conf
done