forked from graphdeeplearning/benchmarking-gnns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script_main_TUs_graph_classification.sh
172 lines (124 loc) · 6.91 KB
/
script_main_TUs_graph_classification.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#!/bin/bash
# check :
# bash script.sh
# tmux attach -t script_mol_opt
# tmux detach
# pkill python
# bash script_main_TUs_graph_classification.sh
############
# GNNs
############
#GatedGCN
#GCN
#GraphSage
#MLP
#GIN
#MoNet
#GAT
#DiffPool
############
# ENZYMES & DD & PROTEINS_full
############
code=main_TUs_graph_classification.py
tmux new -s benchmark_TUs_graph_classification -d
tmux send-keys "source activate benchmark_gnn" C-m
dataset=ENZYMES
tmux send-keys "
python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GatedGCN_ENZYMES.json' &
python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_GCN_ENZYMES.json' &
python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GraphSage_ENZYMES.json' &
python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_MLP_ENZYMES.json' &
wait" C-m
tmux send-keys "
python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GIN_ENZYMES.json' &
python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_MoNet_ENZYMES.json' &
python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GAT_ENZYMES.json' &
python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_DiffPool_ENZYMES.json' &
wait" C-m
dataset=DD
tmux send-keys "
python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GatedGCN_DD.json' &
python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_GCN_DD.json' &
python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GraphSage_DD.json' &
python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_MLP_DD.json' &
wait" C-m
tmux send-keys "
python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GIN_DD.json' &
python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_MoNet_DD.json' &
python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GAT_DD.json' &
python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_DiffPool_DD.json' &
wait" C-m
dataset=PROTEINS_full
tmux send-keys "
python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GatedGCN_PROTEINS_full.json' &
python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_GCN_PROTEINS_full.json' &
python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GraphSage_PROTEINS_full.json' &
python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_MLP_PROTEINS_full.json' &
wait" C-m
tmux send-keys "
python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GIN_PROTEINS_full.json' &
python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_MoNet_PROTEINS_full.json' &
python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GAT_PROTEINS_full.json' &
python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_DiffPool_PROTEINS_full.json' &
wait" C-m
tmux send-keys "tmux kill-session -t benchmark_TUs_graph_classification" C-m
# ############
# # ENZYMES
# ############
# code=main_TUs_graph_classification.py
# tmux new -s benchmark_TUs_graph_classification -d
# tmux send-keys "source activate benchmark_gnn" C-m
# dataset=ENZYMES
# tmux send-keys "
# python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GatedGCN_ENZYMES.json' &
# python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_GCN_ENZYMES.json' &
# python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GraphSage_ENZYMES.json' &
# python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_MLP_ENZYMES.json' &
# wait" C-m
# tmux send-keys "
# python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GIN_ENZYMES.json' &
# python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_MoNet_ENZYMES.json' &
# python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GAT_ENZYMES.json' &
# python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_DiffPool_ENZYMES.json' &
# wait" C-m
# tmux send-keys "tmux kill-session -t benchmark_TUs_graph_classification" C-m
# ############
# # DD
# ############
# code=main_TUs_graph_classification.py
# tmux new -s benchmark_TUs_graph_classification -d
# tmux send-keys "source activate benchmark_gnn" C-m
# dataset=DD
# tmux send-keys "
# python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GatedGCN_DD.json' &
# python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_GCN_DD.json' &
# python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GraphSage_DD.json' &
# python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_MLP_DD.json' &
# wait" C-m
# tmux send-keys "
# python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GIN_DD.json' &
# python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_MoNet_DD.json' &
# python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GAT_DD.json' &
# python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_DiffPool_DD.json' &
# wait" C-m
# tmux send-keys "tmux kill-session -t benchmark_TUs_graph_classification" C-m
# ############
# # PROTEINS_full
# ############
# code=main_TUs_graph_classification.py
# tmux new -s benchmark_TUs_graph_classification -d
# tmux send-keys "source activate benchmark_gnn" C-m
# dataset=PROTEINS_full
# tmux send-keys "
# python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GatedGCN_PROTEINS_full.json' &
# python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_GCN_PROTEINS_full.json' &
# python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GraphSage_PROTEINS_full.json' &
# python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_MLP_PROTEINS_full.json' &
# wait" C-m
# tmux send-keys "
# python $code --dataset $dataset --gpu_id 0 --config 'configs/TUs_graph_classification_GIN_PROTEINS_full.json' &
# python $code --dataset $dataset --gpu_id 1 --config 'configs/TUs_graph_classification_MoNet_PROTEINS_full.json' &
# python $code --dataset $dataset --gpu_id 2 --config 'configs/TUs_graph_classification_GAT_PROTEINS_full.json' &
# python $code --dataset $dataset --gpu_id 3 --config 'configs/TUs_graph_classification_DiffPool_PROTEINS_full.json' &
# wait" C-m
# tmux send-keys "tmux kill-session -t benchmark_TUs_graph_classification" C-m