Skip to content

Latest commit

 

History

237 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContextGNN

This repository contains PyTorch implementation of ContextGNN.

How to Run

To reproduce results on RelBench, run benchmark/relbench_link_prediction_benchmark.py.

python benchmark/relbench_link_prediction_benchmark.py --model contextgnn

To reproduce results on IJCAI-Contest, run benchmark/tgt_ijcai_benchmark.py.

python benchmark/tgt_ijcai_benchmark.py --model contextgnn

To run ContextGNN on any RelBench dataset, without tuning, run examples/relbench_example.py.

python examples/relbench_example.py --dataset rel-trial --task site-sponsor-run --model contextgnn

To run ContextGNN with sampled right hand side nodes, run contextgnn_sample_softmax.py.

python examples/contextgnn_sample_softmax.py --rhs_sample_size 1000

Install Instruction

pip install -e .

# to run examples and benchmarks
pip install -e '.[full]'

About

No description, website, or topics provided.

Resources

Stars

42 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages