README.md 1.24 KB
Newer Older
hbsun2113's avatar
hbsun2113 committed
1
2
3
4
5
6
7
Inductive Representation Learning on Large Graphs (GraphSAGE)
============

- Paper link: [http://papers.nips.cc/paper/6703-inductive-representation-learning-on-large-graphs.pdf](http://papers.nips.cc/paper/6703-inductive-representation-learning-on-large-graphs.pdf)
- Author's code repo: [https://github.com/williamleif/graphsage-simple](https://github.com/williamleif/graphsage-simple). Note that the original code is 
simple reference implementation of GraphSAGE.

8
9
Advanced usages, including how to run pure GPU sampling, how to train with PyTorch Lightning, etc., are in the `advanced` directory.

hbsun2113's avatar
hbsun2113 committed
10
11
12
13
Requirements
------------
- requests

14
```bash
hbsun2113's avatar
hbsun2113 committed
15
pip install requests
16
```
hbsun2113's avatar
hbsun2113 committed
17
18
19
20
21


Results
-------

22
23
### Full graph training

hbsun2113's avatar
hbsun2113 committed
24
25
Run with following (available dataset: "cora", "citeseer", "pubmed")
```bash
26
python3 train_full.py --dataset cora --gpu 0    # full graph
hbsun2113's avatar
hbsun2113 committed
27
28
```

29
30
31
* cora: ~0.8330 
* citeseer: ~0.7110
* pubmed: ~0.7830
32

33
### Minibatch training for node classification
34

35
Train w/ mini-batch sampling for node classification on OGB-products:
36
37

```bash
38
39
python3 node_classification.py
python3 multi_gpu_node_classification.py
40
41
```

42
### Minibatch training for link prediction
43

44
Train w/ mini-batch sampling for link prediction on OGB-Citation2:
45
46

```bash
47
python3 link_pred.py
48
```