Giter Site home page Giter Site logo

jacobiconv's Introduction

How Powerful are Spectral Graph Neural Networks

This repository is the official implementation of the model in the following paper:

Xiyuan Wang, Muhan Zhang: How Powerful are Spectral Graph Neural Networks. ICML 2022

@article{JacobiConv,
  author    = {Xiyuan Wang and
               Muhan Zhang},
  title     = {How Powerful are Spectral Graph Neural Networks},
  journal   = {ICML},
  year      = {2022}
}

Requirements

Tested combination: Python 3.9.6 + PyTorch 1.9.0 + PyTorch_Geometric 2.0.3 + PyTorch Sparse 0.6.12

Other required python libraries include: numpy, scikit-learn, optuna, seaborn etc.

Reproduce Our Results

Image Filter Tasks

To reproduce results of JacobiConv on image datasets:

python ImgFilter.py --test --repeat 1 --dataset $dataset --fixalpha

where $dataset is selected from low, high, rejection, band, and comb.

To reproduce results of linear GNN with other bases:

python ImgFilter.py --test --$basis --repeat 1 --dataset $dataset --fixalpha

where $basis is selected from cheby, power, and bern.

We use optuna to select hyperparameters.

python ImgFilter.py --optruns 100  --dataset $dataset  --path $dir --name $dataset

The record file of optuna will be put in directory $dir.

Real-World Tasks

To reproduce results of JacobiConv on real-world datasets:

python RealWorld.py --test --repeat 10 --dataset $dataset --split dense

where $dataset is selected from pubmed, computers, squirrel, photo, chameleon, film, cora, citeseer, texas, cornell.

To reproduce results of linear GNN with other bases:

python RealWorld.py --test --$basis  --fixalpha --repeat 10 --dataset $dataset --split dense

where $basis is selected from cheby, power, and bern.

To reproduce other ablation studies:

Unifilter

python RealWorld.py --test --repeat 10 --dataset $dataset --split dense --sole

No-PCD

python RealWorld.py --test --repeat 10 --dataset $dataset --split dense --fixalpha

NL-RES

python RealWorld.py --test --repeat 10 --dataset $dataset --split dense --resmultilayer

NL

python RealWorld.py --test --repeat 10 --dataset $dataset --split dense --multilayer

To select hyperparameters:

python RealWorld.py --repeat 3 --optruns 400 --split dense --dataset $dataset  --path $dir --name $dataset

The record file of optuna will be put in directory $dir.

jacobiconv's People

Contributors

xi-yuanwang 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.