README.md 1.07 KB
Newer Older
1
2
# Relational-GCN

Gan Quan's avatar
Gan Quan committed
3
4
5
6
* Paper: [https://arxiv.org/abs/1703.06103](https://arxiv.org/abs/1703.06103)
* Author's code for entity classification: [https://github.com/tkipf/relational-gcn](https://github.com/tkipf/relational-gcn)
* Author's code for link prediction: [https://github.com/MichSchli/RelationPrediction](https://github.com/MichSchli/RelationPrediction)

7
### Dependencies
8
9
Two extra python packages are needed for this example: 

10
11
- MXNet nightly build
- requests
12
13
14
- rdflib
- pandas

15
16
17
18
19
```bash
pip install mxnet --pre
pip install requests rdflib pandas
```

20
21
22
Example code was tested with rdflib 4.2.2 and pandas 0.23.4

### Entity Classification
23
AIFB: accuracy 97.22% (DGL), 95.83% (paper)
24
25
26
27
```
DGLBACKEND=mxnet python entity_classify.py -d aifb --testing --gpu 0
```

28
MUTAG: accuracy 76.47% (DGL), 73.23% (paper)
29
30
31
32
```
DGLBACKEND=mxnet python entity_classify.py -d mutag --l2norm 5e-4 --n-bases 40 --testing --gpu 0
```

33
BGS: accuracy 79.31% (DGL, n-basese=20, OOM when >20), 83.10% (paper)
34
35
36
```
DGLBACKEND=mxnet python entity_classify.py -d bgs --l2norm 5e-4 --n-bases 20 --testing --gpu 0 --relabel
```