-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_baselines.sh
executable file
·45 lines (43 loc) · 1.71 KB
/
run_baselines.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
datasets=(BitcoinOTC-1 BitcoinAlpha-1 wikirfa epinions) #
models=(gcn sgcn sigat sgclstm tgn semba) #
tasks=(signlink_class sign_class link_pred signwt_pred)
num_epochs=(5 10 15 20) #
lr_inits=(0.01 0.001 0.0001)
device=cpu
for dataset in "${datasets[@]}"; do
for model in "${models[@]}"; do
for task in "${tasks[@]}"; do
for num_epoch in "${num_epochs[@]}"; do
for lr_init in "${lr_inits[@]}"; do
if [ "${dataset}" -eq "epinions" ]; then
python train.py \
--model ${model} \
--dataset ${dataset} \
--task ${task} \
--num_epochs ${num_epoch} \
--lr_init ${lr_init} \
--num_feats 8 \
--to_save \
--feat_type zeros \
--null_nsamples 1 \
--batch_size 16000 \
--device ${device};
else
python train.py \
--model ${model} \
--dataset ${dataset} \
--task ${task} \
--num_epochs ${num_epoch} \
--lr_init ${lr_init} \
--num_feats 8 \
--to_save \
--feat_type zeros \
--null_nsamples 1 \
--batch_size 1000 \
--device ${device};
fi
done
done
done
done
done