项目文件夹

文件
Mufei Li 3e8b63ecd3 [Model] DGMG Training with Batch Size 1 (#161)
* DGMG with batch size 1

* Fix

* Adjustment

* Fix

* Fix

* Fix

* Fix
2018-11-22 10:29:25 -05:00

35 行
797 B
Python

"""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):
if opts['dataset'] == 'cycles':
ds_configure = cycles_configure
else:
raise ValueError('Unsupported dataset: {}'.format(opts['dataset']))
opts = {**opts, **ds_configure}
return opts
synthetic_dataset_configure = {
'node_hidden_size': 16,
'num_propagation_rounds': 2,
'optimizer': 'Adam',
'nepochs': 25,
'ds_size': 4000,
'num_generated_samples': 10000,
}
cycles_configure = {
**synthetic_dataset_configure,
**{
'min_size': 10,
'max_size': 20,
'lr': 5e-4,
}
}