torch-rgcn

A PyTorch implementation of the Relational Graph Convolutional Network (RGCN).

https://github.com/thiviyant/torch-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

graph-convolutional-network graph-neural-network link-prediction node-classification relational-graphs
Last synced: 6 months ago · JSON representation ·

Repository

A PyTorch implementation of the Relational Graph Convolutional Network (RGCN).

Basic Info
  • Host: GitHub
  • Owner: thiviyanT
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 14 MB
Statistics
  • Stars: 123
  • Watchers: 5
  • Forks: 16
  • Open Issues: 8
  • Releases: 0
Topics
graph-convolutional-network graph-neural-network link-prediction node-classification relational-graphs
Created almost 6 years ago · Last pushed over 4 years ago
Metadata Files
Readme Changelog License Citation

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:

  1. Download all datasets: bash get_data.sh

  2. Install the dependencies inside a new virtual environment: bash setup_dependencies.sh

  3. Activate the virtual environment: conda activate torch_rgcn_venv

  4. Install 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 Model
  • c-rgcn - Compression RGCN Model
  • e-rgcn - Embedding RGCN Model

Experiments

  • lp - Link Prediction
  • nc - Node Classification

Datasets

Link Prediction

  • WN18
  • FB-Toy

Node Classification

  • AIFB
  • MUTAG
  • BGS
  • AM

Part 1: Reproduction

Link Prediction

Link Prediction Model

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

Node Classification Model

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

c-RGCN Link Prediction Model

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

Link Prediction

Owner

  • Name: Thiviyan Singam
  • Login: thiviyanT
  • Kind: user
  • Location: Amsterdam
  • Company: University of Amsterdam

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)
Top Labels
Issue Labels
Pull Request Labels