-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscale.sh
41 lines (41 loc) · 1.22 KB
/
scale.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
task_level="graph"
scale_type="data"
data_array=(0.1 0.2 0.3 0.4 0.5 0.6)
emb_array=(50 100 200 300 400 500)
if [ "$task_level" == "graph" ]; then
if [ "$scale_type" == "data" ]; then
for a in ${data_array[@]}
do
python main_graph.py --dataset ogbg-molpcba --training_ratio $a --scale_type data
done
else
for a in ${emb_array[@]}
do
python main_graph.py --dataset ogbg-molpcba --emb_dim $a --scale_type model
done
fi
elif [ "$task_level" == "node" ]; then
if [ "$scale_type" == "data" ]; then
for a in ${data_array[@]}
do
python main_node.py --dataset ogbn-arxiv --training_ratio $a --scale_type data
done
else
for a in ${emb_array[@]}
do
python main_node.py --dataset ogbn-arxiv --emb_dim $a --scale_type model
done
fi
else
if [ "$scale_type" == "data" ]; then
for a in ${data_array[@]}
do
python main_link.py --dataset ogbl-collab --training_ratio $a --scale_type data
done
else
for a in ${emb_array[@]}
do
python main_link.py --dataset ogbl-collab --emb_dim $a --scale_type model
done
fi
fi