README.md 1010 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
# Relational-GCN

* 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)

### Dependencies
* Tensorflow 2.1+
* requests
* rdflib
* pandas

```
14
15
pip install requests tensorflow rdflib pandas
export DGLBACKEND=tensorflow
16
17
18
19
20
```

Example code was tested with rdflib 4.2.2 and pandas 0.23.4

### Entity Classification
21
AIFB: accuracy 92.78% (5 runs, DGL), 95.83% (paper)
22
23
24
25
```
python3 entity_classify.py -d aifb --testing --gpu 0
```

26
MUTAG: accuracy 71.47% (5 runs, DGL), 73.23% (paper)
27
28
29
30
```
python3 entity_classify.py -d mutag --l2norm 5e-4 --n-bases 30 --testing --gpu 0
```

31
BGS: accuracy 93.10% (5 runs, DGL n-base=25), 83.10% (paper n-base=40)
32
```
33
python3 entity_classify.py -d bgs --l2norm 5e-4 --n-bases 25 --testing --gpu 0
34
```