Skip to content

manhtuando97/two-stage-gnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Two-stage Training of Graph Neural Networks for Graph Classification

Source code and datasets for training several Graph Neural Network (GNN) architectures for the task of graph classification in the 3 settings described in the main paper: original, 2stg, and 2stg+

In this work, we compare the performance of each GNN architecture on the graph classification task when the architecture is trained in the following 3 settings

  • Original
  • 2stg
  • 2stg+ Details of these 3 settings are described in the main paper.

Requirements

The packages and libraries that were used to run the code are:

torch 1.7.0
networkx 2.5
sklearn 0.23.2
numpy 1.16.4
torch-geometric 1.16.3

Code

Code
  |__eigengcn
  |__sag
  |__sage+gat+diffpool

The commands to run to train each GNN architecture on the 3 settings (original, 2stg, 2stg+) are described in the 'run_examples.txt' file in the respective folder.

Datasets

Dataset #Graphs Avg. #Nodes Avg. #Edges Download
DD 1,168 269 676 Link
MUTAG 188 18 20 Link
MUTAG2 4,337 30 31 Link
PTC-FM 349 14 14 Link
PROTEINS 1,113 39 73 Link
IMDB-B 1,000 20 97 Link
JAN. G. 744 174 497 Link
FEB. G. 648 175 503 Link
MAR. G. 744 174 480 Link
JAN. Y. 744 203 1,866 Link
FEB. Y. 648 199 1,868 Link
MAR. Y. 744 207 1,968 Link

License

The source code in this directory is licensed under the MIT license, which can be found in the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages