This repo is the extension of GRIT to evaluate PE on GTs.
The implementation is based on GRIT (Ma et al., ICML 2023).
pip install -r requirements.txt
# Run
python main.py --cfg configs/GT/0_bench/GRIT/zinc/zinc-GRIT-RWDIFF.yaml wandb.use False accelerator "cuda:0" seed 0
# replace 'cuda:0' with the device to use
# replace 'xx/xx/data' with your data-dir (by default './datasets")
# replace 'configs/GRIT/zinc-GRIT.yaml' with any experiments to run
- Exphormer (included)
grit/layer/Exphormer.py
- GraphGPS (included)
grit/layer/gps_layer.py
- NodeFormer (included)
grit/layer/nodeformer_layer.py
- DIFFORMER (included)
grit/layer/difformer_layer.py
- GOAT (included)
grit/layer/goat_layer.py
- NAGphormer (included, adapted to graph level)
grit/layer/nagphormer_layer.py
- GRIT (included)
grit/layer/grit_layer.py
- Graphormer (included)
grit/layer/graphormer_layer.py
- EGT (included)
grit/layer/egt_layer.py
- SAN (included)
grit/layer/san_layer.py
- GraphTrans (included)
grit/layer/graphtrans_layer.py
- GraphiT (included)
grit/layer/graphit_layer.py
- Original_GT (included)
grit/layer/origin_gt_layer.py
- UniMP (included)
grit/layer/unimp.py
- SAT (included)
grit/layer/SAT_layer.py
- ESLapPE (Already in GPS/GRIT)
grit/encoder/equivstable_laplace_pos_encoder.py
- LapPE (Already in GPS/GRIT)
grit/encoder/laplace_pos_encoder.py
- RWSE (Already in GPS/GRIT)
grit/encoder/kernel_pos_encoder.py
- RRWP (Already in GRIT)
grit/encoder/rrwp_encoder.py
- SPD (Already in GRIT)
grit/encoder/spd_encoder.py
- SignNet (Already in GPS/GRIT)
grit/encoder/signnet_pos_encoder.py
- Personalized Page Rank (PPR)
grit/encoder/ppr_pos_encoder.py
- SVD-based PE (SVD)
grit/encoder/svd_pos_encoder.py
- Node2Vec Algorithm (NODE2VEC)
grit/encoder/node2vec_pos_encoder.py
- WL test based PE (WLPE)
grit/encoder/wlpe_pos_encoder.py
- Diffusion on Kernelized Laplacian PE (GCKN)
grit/encoder/gckn_pos_encoder.py
- Diffusion on Random Walk Probabilities (LSPE)
grit/encoder/rwdiff_pos_encoder.py
- CORE Graph Rewiring and Drawing (CORE)
grit/encoder/gd_encoder.py
- Configurations are available under
PEGT/configs/GT/0_bench/xx/dataset/dataset-xx-yy.yaml
where dataset is the name of the dataset, xx is the attention module and yy is your positional encoding - Scripts to execute are available under
./scripts/xxx.sh
- will run 4 trials of experiments parallelly on
GPU:0,1,2,3
.
- will run 4 trials of experiments parallelly on