README.md 1.32 KB
Newer Older
kitaev-chen's avatar
kitaev-chen committed
1
2
3
4
5
6
7
8
Graph Isomorphism Network (GIN)
============

- Paper link: [arXiv](https://arxiv.org/abs/1810.00826) [OpenReview](https://openreview.net/forum?id=ryGs6iA5Km) 
- Author's code repo: [https://github.com/weihua916/powerful-gnns](https://github.com/weihua916/powerful-gnns).

Dependencies
------------
9
- scikit-learn
kitaev-chen's avatar
kitaev-chen committed
10

11
Install as follows:
kitaev-chen's avatar
kitaev-chen committed
12
```bash
13
pip install scikit-learn
kitaev-chen's avatar
kitaev-chen committed
14
15
```

16
How to run
kitaev-chen's avatar
kitaev-chen committed
17
18
-------

19
Run with the following for bioinformatics graph classification (available datasets: MUTAG (default), PTC, NCI1, and PROTEINS)
kitaev-chen's avatar
kitaev-chen committed
20
```bash
21
python3 train.py --dataset MUTAG
kitaev-chen's avatar
kitaev-chen committed
22
23
```

24
> **_NOTE:_**  Users may observe results fluctuate due to the randomness with relatively small dataset.  In consistence with the original [paper](https://arxiv.org/abs/1810.00826), five social network datasets, 'COLLAB', 'IMDBBINARY' 'IMDBMULTI' 'REDDITBINARY' and 'REDDITMULTI5K', are also available as the input. Users are encouraged to update the script slightly for social network applications, for example, replacing sum readout on bioinformatics datasets with mean readout on social network datasets and using one-hot encodings of node degrees by setting "degree_as_nlabel=True" in GINDataset.
25

26
27
Summary (10-fold cross-validation)
-------
28
| Dataset       | Result
29
| ------------- | -------
30
31
32
33
| MUTAG         | ~89.4
| PTC           | ~68.5
| NCI1          | ~82.9
| PROTEINS      | ~74.1