"LinuxGUI/EXLIB/README.txt" did not exist on "7db83dc0f1820acaa84b2e00dce3c7a6e994c167"
README.md 1.52 KB
Newer Older
Smile's avatar
Smile committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# DGL Implementation of the SEAL Paper
This DGL example implements the link prediction model proposed in the paper 
[Link Prediction Based on Graph Neural Networks](https://arxiv.org/pdf/1802.09691.pdf) 
and [REVISITING GRAPH NEURAL NETWORKS FOR LINK PREDICTION](https://arxiv.org/pdf/2010.16103.pdf)  
The author's codes of implementation is in [SEAL](https://github.com/muhanzhang/SEAL) (pytorch)
and [SEAL_ogb](https://github.com/facebookresearch/SEAL_OGB) (torch_geometric)

Example implementor
----------------------
This example was implemented by [Smile](https://github.com/Smilexuhc) during his intern work at the AWS Shanghai AI Lab.

The graph dataset used in this example 
---------------------------------------

ogbl-collab
 - NumNodes: 235868
 - NumEdges: 2358104
 - NumNodeFeats: 128
 - NumEdgeWeights: 1
 - NumValidEdges: 160084
 - NumTestEdges: 146329

Dependencies
--------------------------------

- python 3.6+
- Pytorch 1.5.0+
- dgl 0.6.0 +
- ogb  
- pandas
- tqdm
- scipy


 How to run example files
--------------------------------
In the seal_dgl folder    
run on cpu:  
```shell script
python main.py --gpu_id=-1 --subsample_ratio=0.1
```
run on gpu:  
```shell script
python main.py --gpu_id=0  --subsample_ratio=0.1
```

Performance
-------------------------
experiment on `ogbl-collab`

| method | valid-hits@50 | test-hits@50 |
| ------ | ------------- | ------------ |
| paper  | 63.89(0.49)         | 53.71(0.47)        |
| ours     | 63.56(0.71)         | 53.61(0.78)        |

Note: We only perform 5 trails in the experiment.