README.md 1.36 KB
Newer Older
hbsun2113's avatar
hbsun2113 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.

Requirements
------------
- requests

``bash
pip install requests
``


Results
-------

20
21
### Full graph training

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

27
28
29
* cora: ~0.8330 
* citeseer: ~0.7110
* pubmed: ~0.7830
30

31
### Minibatch training
32
33
34

Train w/ mini-batch sampling (on the Reddit dataset)
```bash
35
36
37
38
python3 train_sampling.py --num-epochs 30       # neighbor sampling
python3 train_sampling_multi_gpu.py --num-epochs 30    # neighbor sampling with multi GPU
python3 train_cv.py --num-epochs 30             # control variate sampling
python3 train_cv_multi_gpu.py --num-epochs 30   # control variate sampling with multi GPU
39
40
```

41
42
43
44
45
46
47
Accuracy:

| Model                 | Accuracy |
|:---------------------:|:--------:|
| Full Graph            | 0.9504   |
| Neighbor Sampling     | 0.9495   |
| Control Variate       | 0.9490   |