forked from BUPT-GAMMA/OpenHGNN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini
467 lines (403 loc) · 6.36 KB
/
config.ini
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
[NSHE]
learning_rate = 0.001
weight_decay = 0.00001
beta = 0.05
seed = 0
norm_emd_flag = True
project_dim=128
context_dim=64
emd_dim=128
num_e_neg = 1
num_ns_neg = 4
max_epoch = 500
patience = 10
optimizer = adam
mini_batch_flag = False
[GTN]
learning_rate = 0.005
weight_decay = 0.001
hidden_dim = 128
out_dim = 16
num_channels = 2
num_layers = 2
seed = 0
max_epoch = 50
patience = 10
identity = True
norm_emd_flag = True
adaptive_lr_flag = True
mini_batch_flag = False
[MHNF]
learning_rate = 0.05
weight_decay = 0.001
hidden_dim = 64
out_dim = 16
num_channels = 2
num_layers = 2
seed = 0
max_epoch = 50
patience = 10
identity = False
norm_emd_flag = True
adaptive_lr_flag = True
mini_batch_flag = False
[RSHN]
learning_rate = 0.005
weight_decay = 0.001
dropout = 0.2
seed = 1233
hidden_dim = 16
max_epoch = 500
rw_len = 4
batch_size = 1000
num_node_layer = 2
num_edge_layer = 2
patience = 50
validation = True
mini_batch_flag = False
[RHGNN]
learning_rate = 0.001
num_heads = 8
hidden_dim = 64
relation_hidden_units = 8
drop_out = 0.5
n_layers = 2
residual = True
batch_size = 80
node_neighbors_min_num = 10
optimizer = adam
weight_decay = 0.0
max_epoch = 100
patience = 50
mini_batch_flag = True
negative_slope=0.2
norm = True
dropout = 0.2
n_heads = 4
category = movie
out_dim = 3
[RGCN]
learning_rate = 0.01
weight_decay = 0.0001
dropout = 0.2
seed =0
in_dim = 64
hidden_dim = 64
n_bases = 40
n_layers = 3
max_epoch = 50
patience = 50
batch_size = 126
fanout = 4
validation = True
use_self_loop = False
mini_batch_flag = False
[CompGCN]
learning_rate = 0.01
weight_decay = 0.0001
dropout = 0.2
seed = 0
n_layers = 2
in_dim = 32
hidden_dim = 32
out_dim = 32
;We restrict the number of hidden units to 32. from paper
max_epoch = 500
patience = 100
comp_fn = sub
validation = True
mini_batch_flag = False
[HetGNN]
seed = 0
learning_rate = 0.001
weight_decay = 0.00001
dim = 128
max_epoch = 500
batch_size = 64
window_size = 5
num_workers = 4
batches_per_epoch = 50
rw_length = 50
rw_walks = 10
rwr_prob = 0.5
patience = 20
mini_batch_flag = True
[Metapath2vec]
learning_rate = 0.01
dim = 128
max_epoch = 1
batch_size = 32
window_size = 5
num_workers = 4
rw_length = 20
rw_walks = 10
neg_size = 5
seed = 0
meta_path_key = APVPA
[HERec]
learning_rate = 0.01
dim = 128
max_epoch = 1
batch_size = 32
window_size = 2
num_workers = 4
rw_length = 100
rw_walks = 10
neg_size = 5
seed = 0
meta_path_key = APVPA
[HAN]
seed = 0
learning_rate = 0.005
weight_decay = 0.001
dropout = 0.6
hidden_dim = 128
out_dim = 16
num_heads = 8
max_epoch = 200
patience = 100
mini_batch_flag = False
[NARS]
seed = 0
learning_rate = 0.003
weight_decay = 0.001
dropout = 0.7
hidden_dim = 64
out_dim = 16
num_heads = 8
num_hops = 2
max_epoch = 200
mini_batch_flag = False
R = 2
patience = 100
input_dropout = True
cpu_preprocess = True
ff_layer = 2
[MAGNN]
seed = 0
learning_rate = 0.005
weight_decay = 0.001
dropout = 0.3
h_dim = 64
out_dim = 3
inter_attn_feats = 128
num_heads = 8
num_layers = 4
max_epoch = 10
patience = 30
encoder_type = RotateE
mini_batch_flag = False
batch_size = 8
num_samples = 5
[HGNN_AC]
feats_drop_rate = 0.2
attn_vec_dim = 32
feats_opt = 110
loss_lambda = 0.2
src_node_type = 2
dropout = 0.1
num_heads = 8
HIN = MAGNN
[HGT]
seed = 0
learning_rate = 0.01
weight_decay = 0.0001
dropout = 0.4
batch_size = 5120
patience =40
hidden_dim = 64
out_dim = 16
num_layers = 2
num_heads = 2
num_workers = 64
max_epoch = 200
mini_batch_flag = False
norm = True
[HeCo]
seed = 2
hidden_dim = 64
max_epoch = 10000
eva_lr = 0.05
eva_wd = 0
patience = 5
learning_rate = 0.0008
weight_decay = 0
tau = 0.8
feat_drop = 0.3
attn_drop = 0.5
sample_rate = author-7_subject-1
lam = 0.5
mini_batch_flag = False
[DMGI]
seed = 0
learning_rate = 0.0005
weight_decay = 0.0001
sc = 3
dropout = 0.5
reg_coef = 0.001
sup_coef = 0.1
patience =20
hid_unit = 64
num_heads = 1
max_epoch = 10000
isSemi = False
isBias = False
isAttn = False
[SLiCE]
data_name = amazon
num_walks_per_node = 1
beam_width = 4
max_length = 6
walk_type = dfs
batch_size = 128
outdir = ./openhgnn/output/SLiCE/amazon/
pretrained_embeddings = ./openhgnn/output/SLiCE/amazon/amazon.embed
n_pred = 1
max_pred = 1
lr = 0.0001
n_epochs = 300
get_bert_encoder_embeddings = False
checkpoint = 20
path_option = shortest
ft_batch_size = 100
d_model = 200
ft_d_ff = 512
ft_layer = ffn
ft_drop_rate = 0.1
ft_input_option = last4_cat
ft_lr = 0.00005
ft_n_epochs = 200
n_layers = 6
ft_checkpoint = 1000
[HPN]
seed = 0
learning_rate = 0.005
weight_decay = 0.001
dropout = 0.6
k_layer = 2
alpha = 0.1
edge_drop = 0
hidden_dim = 64
out_dim = 16
max_epoch = 200
patience = 100
mini_batch_flag = False
[KGCN]
seed = 0
weight_decay = 1e-4
lr = 0.002
in_dim = 16
out_dim = 16
batch_size = 128
n_neighbor = 8
aggregate = SUM
n_relation = 60
n_user = 1872
epoch_iter = 100
mini_batch_flag = True
[HeGAN]
seed = 0
lr_gen = 0.001
lr_dis = 0.001
wd_gen = 1e-5
wd_dis = 1e-5
sigma = 1.0
n_sample = 16
max_epoch = 100
emb_size = 64
epoch_dis = 10
epoch_gen = 5
mini_batch_flag = False
validation = True
patience = 10
[general_HGNN]
gnn_type = gcnconv
dropout = 0.5
has_bn = true
activation = tanh
has_l2norm = true
hidden_dim = 64
max_epoch = 400
lr = 0.01
optimizer = Adam
weight_decay = 0.0001
patience = 40
layers_gnn = 4
layers_post_mp = 1
layers_pre_mp = 1
stage_type = stack
macro_func = attention
num_heads = 8
feat = 0
subgraph_extraction = metapath
mini_batch_flag = false
[homo_GNN]
gnn_type = gcnconv
dropout = 0.5
has_bn = true
activation = tanh
has_l2norm = true
hidden_dim = 64
max_epoch = 400
lr = 0.01
optimizer = Adam
weight_decay = 0.0001
patience = 40
layers_gnn = 4
layers_post_mp = 1
layers_pre_mp = 1
stage_type = stack
num_heads = 8
feat = 0
subgraph=metapath
mini_batch_flag = false
[HDE]
emb_dim = 128
num_neighbor = 5
use_bias = true
k_hop = 2
max_epoch = 400
batch_size = 32
max_dist = 3
lr = 0.001
[SimpleHGN]
h_dim = 64
n_layers = 3
num_heads = 8
feats_drop_rate = 0.2
slope = 0.05
edge_dim = 64
seed = 0
max_epoch = 500
patience = 100
lr = 0.001
weight_decay = 5e-4
beta = 0.05
residual = True
[GATNE-T]
learning_rate = 0.01
patience = 5
max_epoch = 10
batch_size = 256
num_workers = 4
dim = 200
edge_dim = 10
att_dim = 20
rw_length = 10
rw_walks = 20
window_size = 5
neg_size = 5
neighbor_samples = 10
score_fn = dot-product
[HetSANN]
lr = 0.0005
weight_decay = 0.0005
dropout = 0.2
seed =0
h_dim = 64
num_layers = 4
num_heads = 16
max_epoch = 10000
patience = 100
slope = 0.2
residual = True