Git Product home page Git Product logo

sota_gnn's Introduction

State of the Art GNN models from scratch !

Semi-supervised classification with Graph Convolution Networks (Kipf et al. ICLR 2017)

Paper here --> https://arxiv.org/abs/1609.02907

GCN is a very important paper in modern GNN. The objective of this paper is to generalize convolution to graphs. Several existing methods were based on the spectral decomposition of the Laplacian matrix of a graph to perform convolutions. However, these methods suffer from a high computational time (the eigenvector decomposition is expensive) and the slightest change in the graph makes the decomposition change and disturbs the learning and the predictions. GCN aims at simplifying these spectral methods and proposes a simpler, more efficient and inductive architecture for convolution on graphs.

See this blog to understand the motivation of graph convolution https://distill.pub/2021/understanding-gnns/

The GCN architecture is based on a very comprehensive matrix multiplication, an exemple here with a 2 layer GCN :
$ Z=f(X, A)=\operatorname{softmax}\left(\hat{A} \operatorname{ReLU}\left(\hat{A} X W^{(0)}\right) W^{(1)}\right) $

where $ \hat{A}=\tilde{D}^{-\frac{1}{2}} \tilde{A} \tilde{D}^{-\frac{1}{2}} $ and $\tilde{A} = A + I$

$A$ is the adjacency matrix of size $n\times n$ of a graph $G$
$D$ the degree matrix of these graph.
$X$ is a feature matrix of size $n \times m $ย 
$W^{(0)}$ a weight matrix of size $m \times z$
$W^{(1)}$ a weight matrix of size $z \times n_class$ in the case of a supervised training.

In the GCN folder I reimplement from scratch in pytorch a simple two layer GCN on the dataset Zachary Karate Club https://en.wikipedia.org/wiki/Zachary%27s_karate_club

sota_gnn's People

Contributors

ykrmm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

elias-ramzi

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.