torch-rgcn
A PyTorch implementation of the Relational Graph Convolutional Network (RGCN).
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org, springer.com, acs.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.9%) to scientific vocabulary
Keywords
Repository
A PyTorch implementation of the Relational Graph Convolutional Network (RGCN).
Basic Info
Statistics
- Stars: 123
- Watchers: 5
- Forks: 16
- Open Issues: 8
- Releases: 0
Topics
Metadata Files
README.md
Torch-RGCN
Torch-RGCN is a PyTorch implementation of the RGCN, originally proposed by Schlichtkrull et al. in
Modeling Relational Data with Graph Convolutional Networks.
In our paper, we reproduce the link prediction and node classification experiments from the original paper and using our reproduction we explain the RGCN. Furthermore, we present two new configurations of the RGCN.
Getting started
Requirements: * Conda >= 4.8 * Python >= 3.7
Do the following:
Download all datasets:
bash get_data.shInstall the dependencies inside a new virtual environment:
bash setup_dependencies.shActivate the virtual environment:
conda activate torch_rgcn_venvInstall the torch-RGCN module:
pip install -e .
Usage
Configuration files
The hyper-parameters for the different experiments can be found in YAML files under
configs. The naming convention of the files is as follows: configs/{MODEL}/{EXPERIMENT}-{DATASET}.yaml
Models
rgcn- Standard RGCN Modelc-rgcn- Compression RGCN Modele-rgcn- Embedding RGCN Model
Experiments
lp- Link Predictionnc- Node Classification
Datasets
Link Prediction
WN18FB-Toy
Node Classification
AIFBMUTAGBGSAM
Part 1: Reproduction
Link Prediction

Original Link Prediction Implementation: https://github.com/MichSchli/RelationPrediction
To run the link prediction experiment using the RGCN model using:
python experiments/predict_links.py with configs/rgcn/lp-{DATASET}.yaml
Make sure to replace {DATASET} with one of the following dataset names: FB-toy or WN18.
Node Classification

Original Node Classification Implementation: https://github.com/tkipf/relational-gcn
To run the node classification experiment using the RGCN model using:
python experiments/classify_nodes.py with configs/rgcn/nc-{DATASET}.yaml
Make sure to replace {DATASET} with one of the following dataset names: AIFB, MUTAG, BGS or AM.
Part 2: New RGCN Configurations
Node Classification with Node Embeddings
To run the node classification experiment use:
python experiments/classify_nodes.py with configs/e-rgcn/nc-{DATASET}.yaml
Make sure to replace {DATASET} with one of the following dataset names: AIFB, MUTAG, BGS or AM.
Link Prediction Compressed Node Embeddings

To run the link prediction experiment use:
python experiments/predict_links.py with configs/c-rgcn/lp-{DATASET}.yaml
Make sure to replace {DATASET} with one of the following dataset names: FB-toy, or WN18.
Dataset References
Node Classification
AIFBfrom Stephan Bloehdorn and York Sure. Kernel methods for mining instance data in ontologies.. In The Semantic Web, 6th International Semantic Web Conference, 2007.MUTAGfrom A. K. Debnath, R. L. Lopez de Compadre, G. Debnath, A. J.Shusterman, and C. Hansch. Structure-activity relationship of mutagenic aromatic and heteroaromatic nitro-compounds correlation with molecular orbital energies and hydrophobicity. J Med Chem,34:786–797, 1991.BGSfrom de Vries, G.K.D. A fast approximation of the Weisfeiler-Lehman graph kernel for RDF data. In European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2013.AMfrom de Boer, V., Wielemaker, J., van Gent, J., Hildebrand, M., Isaac, A., van Ossenbruggen, J., Schreiber, G. Supporting linked data production for cultural heritageinstitutes: The amsterdam museum case study. In The Semantic Web: Research and Applications, 2012.
Link Prediction
WN18from Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran , Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. In Advances in Neural Information Processing Systems, 2013.FB-Toyfrom Daniel Ruffinelli, Samuel Broscheit, and Rainer Gemulla. You CAN teach an old dog new tricks! on training knowledge graph embeddings. In International Conference on Learning Representations, 2019.
Owner
- Name: Thiviyan Singam
- Login: thiviyanT
- Kind: user
- Location: Amsterdam
- Company: University of Amsterdam
- Website: thiviyansingam.com
- Twitter: thiviyansingam
- Repositories: 3
- Profile: https://github.com/thiviyanT
PhD candidate at University of Amsterdam
Citation (CITATION.cff)
cff-version: 1.0.0. message: "If you use this deep learning model, please cite it as below." authors: - family-names: "Thanapalasingam" given-names: "Thiviyan" orcid: "https://orcid.org/0000-0002-0170-9105" - family-names: "van Berkel" given-names: "Lucas" orcid: "https://orcid.org/0000-0002-2524-1279" - family-names: "Bloem" given-names: "Peter" orcid: "https://orcid.org/0000-0002-0189-5817" - family-names: "Groth" given-names: "Paul" orcid: "https://orcid.org/0000-0003-0183-6910" title: "Torch-RGCN" version: 1.0.0 doi: arXiv:2107.10015 date-released: 2021-07-21 url: "https://github.com/thiviyanT/torch-rgcn"
GitHub Events
Total
- Watch event: 11
- Fork event: 2
Last Year
- Watch event: 11
- Fork event: 2
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 9
- Total pull requests: 5
- Average time to close issues: 5 days
- Average time to close pull requests: 19 days
- Total issue authors: 9
- Total pull request authors: 2
- Average comments per issue: 2.89
- Average comments per pull request: 0.0
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- traopia (1)
- nnnnnzy (1)
- wouterbeek (1)
- tekrajchhetri (1)
- john012343210 (1)
- Tauboga208 (1)
- MudasserAfzal (1)
- raftelo (1)
- Sidharth3301 (1)
Pull Request Authors
- thiviyanT (3)
- LucasvBerkel (2)