graphdeeplearning / graphtransformer

Graph Transformer Architecture. Source code for "A Generalization of Transformer Networks to Graphs", DLG-AAAI'21.
https://arxiv.org/abs/2012.09699
MIT License
872 stars 134 forks source link

Superpixel dataset #6

Closed jamzad closed 3 years ago

jamzad commented 3 years ago

Thanks for sharing codes for your interesting paper. I'm interested in applying this method to MNIST superpixel dataset (your benchmarking work) where the task is graph classification, graphs have both node features and edge features, and the number of nodes/edges are different between graphs. What modifications should I made to the current code?

vijaydwivedi75 commented 3 years ago

Hi @jamzad,

Since this repo is based on the benchmarking gnns code, it should be straightforward.

You can follow the instructions here for adding a new model in the benchmark repo, and can easily adapt for the mentioned task by using the graph transformer related files in the benchmark repo.

Best, Vijay

jamzad commented 3 years ago

Great, thank you @vijaydwivedi75 I was using the previous version where Dataset collate had 3 outputs (with norms). I'll update to new version.