项目文件夹

文件
hgalioulline 6c7c403914 [Feature] Filtered MRR metrics for R-GCN example (#1298)
* Add filtered metrics for R-GCN example

* Add new line to end of file

* Add evaluation protocol argument option for R-GCN example

* Update README

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-51-214.ec2.internal>
2020-03-13 16:25:03 +08:00
..
2018-12-03 13:01:27 -05:00
2020-02-24 13:33:55 +08:00
2019-08-23 16:38:48 -04:00

Relational-GCN

Dependencies

  • PyTorch 0.4.1+
  • requests
  • rdflib
  • pandas
pip install requests torch rdflib pandas

Example code was tested with rdflib 4.2.2 and pandas 0.23.4

Entity Classification

AIFB: accuracy 97.22% (DGL), 95.83% (paper)

python3 entity_classify.py -d aifb --testing --gpu 0

MUTAG: accuracy 75% (DGL), 73.23% (paper)

python3 entity_classify.py -d mutag --l2norm 5e-4 --n-bases 30 --testing --gpu 0

BGS: accuracy 82.76% (DGL), 83.10% (paper)

python3 entity_classify.py -d bgs --l2norm 5e-4 --n-bases 40 --testing --gpu 0 --relabel

AM: accuracy 87.37% (DGL), 89.29% (paper)

python3 entity_classify.py -d am --n-bases=40 --n-hidden=10 --l2norm=5e-4 --testing

FB15k-237: MRR 0.151 (DGL), 0.158 (paper)

python3 link_predict.py -d FB15k-237 --gpu 0 --raw

FB15k-237: Filtered-MRR 0.2044

python3 link_predict.py -d FB15k-237 --gpu 0 --filtered