README.md 942 Bytes
Newer Older
1
2
3
# Learning Deep Generative Models of Graphs

This is an implementation of [Learning Deep Generative Models of Graphs](https://arxiv.org/pdf/1803.03324.pdf) by 
Mufei Li's avatar
Mufei Li committed
4
5
6
7
Yujia Li, Oriol Vinyals, Chris Dyer, Razvan Pascanu, Peter Battaglia.

For molecule generation, see 
[our model zoo for Chemistry](https://github.com/dmlc/dgl/tree/master/examples/pytorch/model_zoo/chem/generative_models/dgmg).
8

9
## Dependencies
10
11
12
13
- Python 3.5.2
- [Pytorch 0.4.1](https://pytorch.org/)
- [Matplotlib 2.2.2](https://matplotlib.org/)

Mufei Li's avatar
Mufei Li committed
14
## Usage
15

Chao Ma's avatar
Chao Ma committed
16
17
- Train with batch size 1: `python3 main.py`
- Train with batch size larger than 1: `python3 main_batch.py`.
Mufei Li's avatar
Mufei Li committed
18

19
20
21
22
23
24
25
26
27
## Performance

90% accuracy for cycles compared with 84% accuracy reported in the original paper.

## Speed

On AWS p3.2x instance (w/ V100), one epoch takes ~526s for batch size 1 and takes
~238s for batch size 10.

Mufei Li's avatar
Mufei Li committed
28
29
30
## Acknowledgement

We would like to thank Yujia Li for providing details on the implementation.