Skip to content

luis-mueller/towards-principled-gts

Repository files navigation

Towards Principled Graph Transformers

arXiv pytorch pyg hydra black license

Code for our paper Towards Principled Graph Transformers.

Install

We recommend to use the package manager conda. Once installed run

conda create -n towards-principled-gts python=3.10
conda activate towards-principled-gts

Install all dependencies via

pip install -e .

Configuration

We use hydra for configuring experiments. See here for a tutorial on the hydra override syntax.

NOTE: By default, logging with wandb is disabled. To enable it set wandb_project in the command line. Optionally, set wandb_entity and wandb_name to configure your entity and run name, respectively.

Expressivity

For the BREC benchmark, run

python expressivity/main.py root=/path/to/data/root

respectively, where /path/to/data/root specifies the path to your data folder. This folder will be created if it does not exist.

Molecular regression

To run the ZINC, Alchemy or QM9 dataset, run

python molecular-regression/[zinc|alchemy|qm9].py root=/path/to/data/root

respectively, where /path/to/data/root specifies the path to your data folder. This folder will be created if it does not exist.

Node classification

To run the Cornell, Texas or Wisconsin dataset, run

python node-classification/webkb.py dataset=[Cornell|Texas|Wisconsin] root=/path/to/data/root

respectively, where /path/to/data/root specifies the path to your data folder. This folder will be created if it does not exist.

CLRS-30

For the CLRS experiments see our dedicated fork at https://github.com/ksmdnl/clrs.

About

Code for our paper "Towards Principled Graph Transformers"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages