Giter Site home page Giter Site logo

spd4gnns's Introduction

SPD4GNNs

Implementation for Modeling Graphs Beyond Hyperbolic: Graph Neural Networks in Symmetric Positive Definite Matrices

Available Features

Graph Neural Networks

  • GCNConv: Graph Convolutional Network

  • GATConv: Graph Attentional Network

  • SGCConv: Simplified Graph Convolutional Network

  • GINConv: Graph Isomorphism Network

  • ChebConv: Chebyshev-based Graph Convolutional Network

Manifolds

  • SPD: The space of symmetric positive definite matrices - a special class of symmetric spaces.

  • Euclidean: The space of vectors over the real field.

Datasets

  • Disease: Disease Propagation Tree

  • Airport: Flight Network

  • Pubmed: Citation Network

  • Citeseer: Citation Network

  • Cora: Citation Network

Usage

Below are the instructions on how to run experiments on SPD and Euclidean spaces respectively.

python runner.py --dataset cora --model spdgcn --manifold spd --classifier linear

python runner.py --dataset cora --model gcn --manifold euclidean --classifier linear

Please note that the choice of datasets, models and manifolds remains open. Once chosen, the pipeline will load the optimal configuration of hyperparameters for the current setup in the 6-dimensional space, which can be found in the json folder (identified via grid-search).

Requirements

  • Python == 3.8
  • scikit-learn == 1.0.1
  • torch == 1.12.1
  • torch-geometric == 2.1.0

TODO

  • Hyperbolic Space

  • Datasets for Graph Classification

spd4gnns's People

Contributors

andyweizhao avatar

Stargazers

 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.