README.md 1.44 KB
Newer Older
1
2
3
4
Graph Attention Networks (GAT)
============

- Paper link: [https://arxiv.org/abs/1710.10903](https://arxiv.org/abs/1710.10903)
5
- Author's code repo (in Tensorflow):
6
  [https://github.com/PetarV-/GAT](https://github.com/PetarV-/GAT).
7
8
- Popular pytorch implementation:
  [https://github.com/Diego999/pyGAT](https://github.com/Diego999/pyGAT).
9

10
Dependencies
11
12
13
------------
- torch v1.0: the autograd support for sparse mm is only available in v1.0.
- requests
14
- sklearn
15

16
17
18
19
20
21
22
23
24
25
26
27
```bash
pip install torch==1.0.0 requests
```

How to run
----------

Run with following:

```bash
python train.py --dataset=cora --gpu=0
```
28
29

```bash
30
python train.py --dataset=citeseer --gpu=0
31
```
32
33
34
35
36

```bash
python train.py --dataset=pubmed --gpu=0 --num-out-heads=8 --weight-decay=0.001
```

37
38
39
40
```bash
python train_ppi.py --gpu=0
```

41
42
43
44
45
46
47
48
49
50
51
52
53
54
Results
-------

| Dataset | Test Accuracy | Time(s) | Baseline#1 times(s) | Baseline#2 times(s) |
| ------- | ------------- | ------- | ------------------- | ------------------- |
| Cora | 84.0% | 0.0127 | 0.0982 (**7.7x**) | 0.0424 (**3.3x**) |
| Citeseer | 70.7% | 0.0123 | n/a | n/a |
| Pubmed | 78.1% | 0.0302 | n/a | n/a |

* All the accuracy numbers are obtained after 300 epochs.
* The time measures how long it takes to train one epoch.
* All time is measured on EC2 p3.2xlarge instance w/ V100 GPU.
* Baseline#1: [https://github.com/PetarV-/GAT](https://github.com/PetarV-/GAT).
* Baseline#2: [https://github.com/Diego999/pyGAT](https://github.com/Diego999/pyGAT).