Code Monkey home page Code Monkey logo

graphextendedfiltrationlearning's Introduction

Graph Extended Filtration Learning (LoG 2022)

Implementation for the paper GEFL: Extended Filtration Learning for Graph Classification (LoG 2022) by Simon Zhang, Soham Mukherjee and Tamal K. Dey, Purdue University.

Summary

It is difficult for a standard message passing GNN with finite receptive field to keep track of arbitrary cycles of varied length for graph classification. We address this problem by using extended persistence with explicit cycle representatives in the readout function. Extended persistence is a quantifiable multiscale method to capture the relative prominence of cycles and connected components. We also improve the computation of extended perisistence by using a link-cut tree data structure to dynamically maintain cycle information and introduce parallelism.

Installation

  • python==3.9.1
  • torch==1.10.1
  • CUDA==11.2
  • GCC==7.5.0
  • torch-geometric==2.0.4
  • torch-scatter==2.0.9
  • torch-sparse==0.6.15

For full requirements, see requirements.txt

pip install -r requirements.txt

Running Experiments

Replace "proteins" with any of dd/mutag/imdb-multi/molbace/molbbbp/2cycles/pinwheels below to run experiment on any dataset

To run the proteins readout ablation experiment run the following commands (in parallel):

source proteins_extpers.sh

source proteins_sum.sh

source proteins_max.sh

source proteins_avg.sh

In general, change the --readout flag to the readout function of choice in the shell file.

To run the proteins filtration convolution length experiment, run the following commands (in parallel):

source proteinslen1_sup.sh

source proteinslen2_sup.sh

source proteinslen3_sup.sh

source proteinslen4_sup.sh

source proteinslen5_sup.sh

To run the standard message passing graph neural network baseline, run the command:

cd external_experiments/sup_baseline

source run_sup_baseline.sh

Citation

@inproceedings{
zhang2022gefl,
title={{GEFL}: Extended Filtration Learning for Graph Classification},
author={Simon Zhang and Soham Mukherjee and Tamal K. Dey},
booktitle={Learning on Graphs Conference},
year={2022},
url={https://openreview.net/forum?id=n5tvDCQGloq}
}

graphextendedfiltrationlearning's People

Contributors

simonzhang00 avatar soham0209 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.