-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgran_grid.yaml
67 lines (67 loc) · 1.53 KB
/
gran_grid.yaml
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
---
exp_name: GRAN
exp_dir: exp/GRAN
runner: GranRunner
use_horovod: false
use_gpu: true
device: cuda:0
gpus: [0]
seed: 1234
dataset:
loader_name: GRANData
name: grid
data_path: data/
node_order: DFS # k_core/BFS/degree_decent
train_ratio: 0.8
dev_ratio: 0.2
num_subgraph_batch: 50 # number of subgraphs per mini-batch
num_fwd_pass: 1
has_node_feat: false
is_save_split: false
is_sample_subgraph: true # set to true if you want to sample subgraphs
is_overwrite_precompute: false
model:
name: GRANMixtureBernoulli
num_mix_component: 20
is_sym: true
block_size: 1
sample_stride: 1
max_num_nodes: 361
hidden_dim: 128
embedding_dim: 128
num_GNN_layers: 7
num_GNN_prop: 1
num_canonical_order: 1
dimension_reduce: true
has_attention: true
edge_weight: 1.0e+0
train:
optimizer: Adam
lr_decay: 0.3
lr_decay_epoch: [100000000] # no decay
num_workers: 0
max_epoch: 3000
batch_size: 1
display_iter: 10
snapshot_epoch: 100
valid_epoch: 50
lr: 1.0e-4
wd: 0.0e-4
momentum: 0.9
shuffle: true
is_resume: false
resume_epoch: 5000
resume_dir: # exp/GRAN/your_exp_folder
resume_model: model_snapshot_0005000.pth
test:
batch_size: 20
num_workers: 0
num_test_gen: 20 # number of generated samples
is_vis: true
is_single_plot: false # visualize `num_vis` samples in a single image
is_test_ER: false # test Erdos-Renyi baseline
num_vis: 20
vis_num_row: 5 # visualize `num_vis` samples in `vis_num_row` rows
better_vis: true
test_model_dir: snapshot_model
test_model_name: gran_grid.pth