项目文件夹

文件
Zihao Ye 9314aabd1f [Refactor] Interface of nn modules (#798)
* refactor

* upd mpnn
2019-08-27 22:29:25 +08:00
..
2019-04-17 14:57:07 +08:00
2019-04-17 14:57:07 +08:00
2019-05-23 10:38:05 +08:00

Graph Isomorphism Network (GIN)

Dependencies

  • PyTorch 1.0.1+
  • sklearn
  • tqdm

bash pip install torch sklearn tqdm

How to run

An experiment on the GIN in default settings can be run with

python3 main.py

An experiment on the GIN in customized settings can be run with

python3 main.py [--device 0 | --disable-cuda] --dataset COLLAB \
               --graph_pooling_type max --neighbor_pooling_type sum

Results

Run with following with the double SUM pooling way: (tested dataset: "MUTAG"(default), "COLLAB", "IMDBBINARY", "IMDBMULTI")

python3 train.py --dataset MUTAB --device 0  \
                --graph_pooling_type sum --neighbor_pooling_type sum
  • MUTAG: 0.85 (paper: ~0.89)
  • COLLAB: 0.89 (paper: ~0.80)
  • IMDBBINARY: 0.76 (paper: ~0.75)
  • IMDBMULTI: 0.51 (paper: ~0.52)