cfg.yml 1.13 KB
Newer Older
Jinjing Zhou's avatar
Jinjing Zhou committed
1
2
version: 0.0.1
pipeline_name: nodepred
3
device: cpu
Jinjing Zhou's avatar
Jinjing Zhou committed
4
5
data:
  name: cora
6
  split_ratio:                # Ratio to generate split masks, for example set to [0.8, 0.1, 0.1] for 80% train/10% val/10% test. Leave blank to use builtin split in original dataset
Jinjing Zhou's avatar
Jinjing Zhou committed
7
8
9
10
model:
  name: sage
  embed_size: -1              # The dimension of created embedding table. -1 means using original node embedding
  hidden_size: 16             # Hidden size.
11
12
  num_layers: 1               # Number of hidden layers.
  activation: relu            # Activation function name under torch.nn.functional
Jinjing Zhou's avatar
Jinjing Zhou committed
13
14
15
16
  dropout: 0.5                # Dropout rate.
  aggregator_type: gcn        # Aggregator type to use (``mean``, ``gcn``, ``pool``, ``lstm``).
general_pipeline:
  early_stop:
17
    patience: 20              # Steps before early stop
Jinjing Zhou's avatar
Jinjing Zhou committed
18
19
20
21
22
23
24
25
    checkpoint_path: checkpoint.pth # Early stop checkpoint model file path
  num_epochs: 200             # Number of training epochs
  eval_period: 5              # Interval epochs between evaluations
  optimizer:
    name: Adam
    lr: 0.01
    weight_decay: 0.0005
  loss: CrossEntropyLoss
26
  num_runs: 1                 # Number of experiments to run