8000 GitHub - BarSGuy/Subgraphormer: Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph Products (ICML 2024)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BarSGuy/Subgraphormer

main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subgraphormer

This repository contains the official code of the paper Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph Products (ICML 2024)

Table of Contents

Installation

First create a conda environment

conda env create -f Subgraphormer_environment.yml

and activate it

conda activate Subgraphormer

Repreducability

1. Run Subgraphormer

To run subgraphormer on a specific dataset, set the right parameters in the configuration file and simply run:

python main.py 

2. Run a Hyperparameter sweep

To run a hyperparameter sweep, follow the following steps:

  1. Create the sweep using a yaml file from the folder yamls:

    wandb sweep -p <your project name> <path to the yaml file>

    For example:

    wandb sweep -p zinc12k_project ./yamls/zinc12k_deterministic.yaml

    will run a sweep on the zinc12k dataset with a deterministic model (full bag), in the project zinc12k_project.

    wandb sweep -p test_project ./yamls/zinc12k_stochstic.yaml

    will run a sweep over zinc12k using stochastic sampling.

    This will produce a sweep id

  2. Run the sweep:

    wandb agent <sweep id>

Acknowledgements

Our code is motivated by the code of SWL.

Credits

For academic citations, please use the following:

@inproceedings{
bar-shalom2024subgraphormer,
title={Subgraphormer: Unifying Subgraph {GNN}s and Graph Transformers via Graph Products},
author={Guy Bar-Shalom and Beatrice Bevilacqua and Haggai Maron},
booktitle={Forty-first International Conference on Machine Learning},
year={2024},
url={https://openreview.net/forum?id=6djDWVTUEq}
}

About

Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph Products (ICML 2024)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0