configure.py 797 Bytes
Newer Older
1
2
3
4
5
6
"""We intend to make our reproduction as close as possible to the original paper.
The configuration in the file is mostly from the description in the original paper
and will be loaded when setting up."""


def dataset_based_configure(opts):
7
    if opts["dataset"] == "cycles":
8
9
        ds_configure = cycles_configure
    else:
10
        raise ValueError("Unsupported dataset: {}".format(opts["dataset"]))
11
12
13
14
15
16
17

    opts = {**opts, **ds_configure}

    return opts


synthetic_dataset_configure = {
18
19
20
21
22
23
    "node_hidden_size": 16,
    "num_propagation_rounds": 2,
    "optimizer": "Adam",
    "nepochs": 25,
    "ds_size": 4000,
    "num_generated_samples": 10000,
24
25
26
27
28
}

cycles_configure = {
    **synthetic_dataset_configure,
    **{
29
30
31
32
        "min_size": 10,
        "max_size": 20,
        "lr": 5e-4,
    },
33
}