-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_epi_test.sh
68 lines (50 loc) · 1.44 KB
/
run_epi_test.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
#!/bin/bash
type_graph="TREE"
seed=7
N=10
d=4
height=4
#lamb=0.035
lambda=0.35
mu=0.
t_limit=10
p_edge=1
nsrc=1
scale=2
gamma=1e-3
small_lambda_limit=0
path_contacts=".."
p_source=-2
SCRIPT=" testbench/run_epi.py"
pr_sympt=0.4
n_test_rnd=0
<<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"
init_name="${n_test_rnd}rnd_pr04_"
#init_name="exp_"
path_dir="$(pwd)/results/epijl/${type_graph}_${nsrc}src/N_${N}_${n_test_rnd}rnd/"
#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"
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-7 --seeds_range 0 1"
num_conf=3
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