-
Notifications
You must be signed in to change notification settings - Fork 3
/
1_7b_eval_DGL_batched_GIN.py
executable file
·44 lines (39 loc) · 1.29 KB
/
1_7b_eval_DGL_batched_GIN.py
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
#!/usr/bin/env python3
import os
import warnings
warnings.filterwarnings("ignore")
hidden = [64]
num_layers = [1]
partitions = [1500]
dataset = [
('Proteins' , 29 , 2) ,
( 'artist' , 100 , 12),
( 'soc-BlogCatalog' , 128 , 39),
]
os.system("touch res_DGL_batched_GIN.log")
for n_Layer in num_layers:
for hid in hidden:
for data, d, c in dataset:
for p in partitions:
command = "python batched_gin_dgl.py \
--gpu 0 \
--dataset {} \
--dim {} \
--n-hidden {} \
--n-classes {} \
--psize {}\
--regular \
--run_GIN >> res_DGL_batched_GIN.log".\
format(data, d, hid, c, p)
os.system(command)
print()
os.system("python batched_gin_dgl.py --gpu 0 --dataset ppi --regular --run_GIN >> res_DGL_batched_GIN.log")
print()
os.system("python batched_gin_dgl.py --gpu 0 --dataset ogbn-arxiv --regular --run_GIN >> res_DGL_batched_GIN.log")
print()
os.system("python batched_gin_dgl.py --gpu 0 --dataset ogbn-products --regular >> res_DGL_batched_GIN.log")
print()
os.system("./parse_time.py res_DGL_batched_GIN.log > res_DGL_batched_GIN.csv")
if not os.path.exists("logs"):
os.system("mkdir logs/")
os.system("mv *.log logs/")