Files
dgl/examples/mxnet/rgcn
Hongzhi (Steve), Chen 704bcaf6dd examples (#5323)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
2023-02-19 08:35:15 +08:00
..
2023-02-19 08:35:15 +08:00
2022-09-26 21:46:32 +08:00

Relational-GCN

Dependencies

Two extra python packages are needed for this example:

  • MXNet nightly build
  • requests
  • rdflib
  • pandas
pip install mxnet --pre
pip install requests rdflib pandas

Example code was tested with rdflib 4.2.2 and pandas 0.23.4

Entity Classification

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

DGLBACKEND=mxnet python3 entity_classify.py -d aifb --testing --gpu 0

MUTAG: accuracy 70.59% (5 runs, DGL), 73.23% (paper)

DGLBACKEND=mxnet python3 entity_classify.py -d mutag --l2norm 5e-4 --n-bases 40 --testing --gpu 0

BGS: accuracy 86.21% (5 runs, DGL, n-basese=20), 83.10% (paper)

DGLBACKEND=mxnet python3 entity_classify.py -d bgs --l2norm 5e-4 --n-bases 20 --testing --gpu 0