This repository contains PyTorch implementation of ContextGNN.
To reproduce results on RelBench, run benchmark/relbench_link_prediction_benchmark.py.
python benchmark/relbench_link_prediction_benchmark.py --model contextgnnTo reproduce results on IJCAI-Contest, run benchmark/tgt_ijcai_benchmark.py.
python benchmark/tgt_ijcai_benchmark.py --model contextgnnTo 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 contextgnnTo run ContextGNN with sampled right hand side nodes, run contextgnn_sample_softmax.py.
python examples/contextgnn_sample_softmax.py --rhs_sample_size 1000pip install -e .
# to run examples and benchmarks
pip install -e '.[full]'