Giter Site home page Giter Site logo

spikinggcn's Introduction

This repository includes the source code and appendix of "Spiking Graph Convolutional Networks" which will be published in IJCAI 2022.

๐Ÿ—ป Install:

require: python 3.6+, pytorch and some common packages.

conda create -n py36 python=3.6
conda activate py36
pip install graphgallery==0.7.2 pandas
pip install spikingjelly==0.0.0.0.4
pip install thop scikit-learn

  • In case are prompted that other dependent packages are missing, can install it with: pip install xxx.

  • Set parameters in models_conf.json, such as device": "cuda:0"


๐Ÿ๏ธ Run

cd path_to_spikingGCN/handcode/
python run_snn.py

Also you can run the SpikingGCN.ipynb notebook.


  • For other baseline models, you can
cd gnn_models/
python run_sgc.py

  • For the active learning test, you can
cd active_snn/

and test the al_snn.ipynb.


  • For the image classification test, you can
cd mnist_snn/

and test superpixel_MNIST.ipynb or MNIST.ipynb.


  • Here exist some other experiments we ever tried, like the robustness and bayesian neural networks, which can be explored in the future. You can view them in attack_snn/ and bayesianSNN/ .

๐Ÿ˜˜ Acknowledgement

This project is motivated by GraphGallery, spikingjelly and LISNN, etc., and the original implementations of the authors, thanks for their excellent works!

spikinggcn's People

Contributors

zulunzhu avatar

Stargazers

 avatar

Watchers

James Cloos 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.