-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_greedy.sh
executable file
·68 lines (56 loc) · 1.66 KB
/
run_greedy.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
model_name=DySAT
dataset=reddit_hyperlinks #radoslaw #auton-sys
task=link_prediction
saved_model=models/${model_name}/${dataset}
num_graphs=20
context=19
target_ts=19
ntargets=1
nsamples=100
khop=2
constraint=noise
epsilon=0.1
budget=10
online=false
tga_disturbance_ratio=0
tga_thresh_prob=0.5
declare -a epsilons_arr=(0.02 0.06 0.1 0.3 0.5 0.7 0.9)
epsilon1=100
resparent_dir="baselines/greedy/results_${model_name,,}"
if [ ! -d "${resparent_dir}/${dataset}/multi_targets/${constraint}" ]; then
mkdir -p ${resparent_dir}/${dataset}/multi_targets/${constraint}
fi
file=baselines/greedy_main.py
echo $file
seed=123 #123 483, 665, 811
for epsilon in "${epsilons_arr[@]}"
do
python3 run.py \
-file $file \
-constraint ${constraint} \
-budget ${budget} \
-epsilon ${epsilon} \
-epsilon1 ${epsilon1} \
-model_name ${model_name} \
-saved_model ${saved_model} \
-dataset ${dataset} \
-task ${task} \
-num_graphs ${num_graphs} \
-ntargets ${ntargets} \
-khop ${khop} \
-context ${context} \
-target_ts ${target_ts} \
-featureless \
-num_samples $nsamples \
-device cuda:6 \
-neg_sampling \
-tga_thresh_prob $tga_thresh_prob \
-tga_disturbance_ratio $tga_disturbance_ratio \
-tga_iter_ub 500 \
-seed ${seed} > ${resparent_dir}/${dataset}/multi_targets/${constraint}/results_tg${ntargets}_n${num_graphs}_c${context}t${target_ts}_e${epsilon}_eb${epsilon1}_l${lambda1}.txt \ #_seed${seed}.txt
# -sampling td \
# -dyn_feats \
# _seed${seed}.txt
# -large_graph \
# -debug \
done