forked from YukeWang96/TC-GNN_ATC23
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0_bench.py
executable file
·61 lines (53 loc) · 2.03 KB
/
0_bench.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python3
import os
os.environ["PYTHONWARNINGS"] = "ignore"
# model = 'gcn'
# hidden = [16]
# num_layers = [2]
model = 'agnn'
hidden = [32]
num_layers = [4]
dataset = [
# ('toy' , 3 , 2 ),
# ('tc_gnn_verify' , 16 , 2),
# ('tc_gnn_verify_2x' , 16 , 2),
('citeseer' , 3703 , 6 ),
('cora' , 1433 , 7 ),
('pubmed' , 500 , 3 ),
('ppi' , 50 , 121 ),
('PROTEINS_full' , 29 , 2) ,
('OVCAR-8H' , 66 , 2) ,
('Yeast' , 74 , 2) ,
('DD' , 89 , 2) ,
('YeastH' , 75 , 2) ,
( 'amazon0505' , 96 , 22),
( 'artist' , 100 , 12),
( 'com-amazon' , 96 , 22),
( 'soc-BlogCatalog' , 128 , 39),
( 'amazon0601' , 96 , 22),
# ('SW-620H' , 66 , 2) ,
# ( 'web-BerkStan' , 100 , 12),
# ( 'reddit' , 602 , 41),
# ( 'wiki-topcats' , 300 , 12),
# ( 'COLLAB' , 100 , 3) ,
# ( 'wiki-topcats' , 300 , 12),
# ( 'Reddit' , 602 , 41),
# ( 'enwiki-2013' , 100 , 12),
# ( 'amazon_also_bought' , 96 , 22),
]
for n_Layer in num_layers:
for hid in hidden:
for data, d, c in dataset:
print("=> {}, hiddn: {}".format(data, hid))
command = "python main_tcgnn.py --dataset {} \
--dim {} \
--hidden {} \
--classes {} \
--num_layers {} \
--model {}"\
.format(data, d, hid, c, n_Layer, model)
# command = "sudo ncu --csv --set full python main_gcn.py --dataset {0} --dim {1} --hidden {2} --classes {3} --num_layers {4} --model {5} | tee prof_{0}.csv".format(data, d, hid, c, n_Layer, model)
os.system(command)
print()
print("----------------------------")
print("===========================")