-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_sib.sh
121 lines (98 loc) · 2.16 KB
/
run_sib.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
#!/bin/bash
<<RRG
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="RRG"
seed=7
#N=100
#d=10
#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
type_graph="TREE"
seed=7
N=10
d=7
height=4
#lamb=0.035
lambda=0.35
mu=0.
t_limit=13
p_edge=1
nsrc=1
scale=2
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
gamma=1e-3
small_lambda_limit=0
path_contacts="testbench/data/work_13_contacts.npz"
RRG
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"
p_source=1e-3
EXEC="python -u"
SCRIPT=" testbench/run_sib.py"
pr_sympt=0.3
n_test_rnd=1
<<EFF
pr_sympt=0.4
n_test_rnd=1
delay_test_p="0. 0.1 0.5 0.6"
EFF
delay_test_p="0. 0.4 0.5 0.6"
tobs_min=0
min_ninf=3
node_drop_p=0
init_name="to_${tobs_min}_ps03_"
#init_name="lastobs_tau${tau}_d${delta}_"
#path_dir="$(pwd)/results/sib/${type_graph}_${nsrc}src/N_${N}_${n_test_rnd}rnd_to${tobs_min}"
path_dir="$(pwd)/results/gr/${type_graph}/sib/N_${N}_${nsrc}src/${n_test_rnd}rnd_to${tobs_min}"
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 --node_drop_p $node_drop_p"
EXTRA_FLAGS=" --init_name_file $init_name --path_dir $path_dir" # --sparse_obs_last"
SPARSE_OBS="--sparse_obs --sparse_rnd_tests $n_test_rnd --pr_sympt $pr_sympt --delay_test_p $delay_test_p"
EXTRA_OBS="--sp_obs_new --sp_obs_min_t $tobs_min " #--sp_obs_min_tinf 6"
SIB_PARS="--p_source $p_source --maxit 1000 --p_sus 0.5 --sib_tol 1e-6 --nthreads 10"
num_conf=100
st_conf=0
mkdir -p $path_dir
for seed in $seed #$(seq 0 100)
#for l in 1
do
echo $seed
python $SCRIPT $GEN_GRAPH --seed $seed $EXTRA_FLAGS $SPARSE_OBS --start_conf $st_conf --num_conf $num_conf $SIB_PARS $EXTRA_GEN $EXTRA_OBS
done