Files
Hongzhi (Steve), Chen 704bcaf6dd examples (#5323)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
2023-02-19 08:35:15 +08:00
..
2023-02-19 08:35:15 +08:00
2023-02-19 08:35:15 +08:00
2023-02-19 08:35:15 +08:00
2022-09-26 21:46:32 +08:00

Graph Isomorphism Network (GIN)

Dependencies

  • MXNet 1.5+
  • sklearn
  • tqdm

bash pip install torch sklearn tqdm

How to run

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

DGLBACKEND=mxnet python main.py

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

DGLBACKEND=mxnet python 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")

DGLBACKEND=mxnet python main.py --dataset MUTAG --device 0  \
                --graph_pooling_type sum --neighbor_pooling_type sum