Skip to content

dbusbridge/gcn_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tutorial on Graph Convolutional Neural Networks

Data

The data we use is Zachary's karate club, a standard toy social network. It is a data set consisting of:

  • 34 nodes, each corresponding to members of a karate club

  • 78 pairwise links that correspond to social interactions of the members outside of the club.

A conflict arose in the club which caused the club to split into several factions. Using modularity based clustering, these factions can be recovered from the graph structure alone (except for one node).

Code

  • R/ contains the code necessary to produce the graphml representation of the karate club network,

  • layers/graph.py contains the TensorFlow implementation of the Graph Convolutional Layer,

  • utils/sparse.py contains helper functions for dealing with sparse matrices,

  • examples/ contains two python scripts that demonstrate how Graph Convolutional Neural Networks perform in an unsupervised and semi-supervised manner, following the appendix of http://arxiv.org/abs/1609.02907.

Requirements

This project is built for running on an Anaconda virtual environment. I will add support for alternative setups later.

Setup

  • Clone,

  • If you want to use the gpu version of tensorflow, edit the environment.yml

tensorflow -> tensorflow-gpu
  • Create the Anaconda virtual environment env_graph_convnet
$ conda env create

And you're ready to go!

Original implementation of Graph Convolutional Neural Networks

For the original TensorFlow implementation (in a Keras style) see https://github.com/tkipf/gcn.

References

Blog posts

Papers

About

A tutorial on Graph Convolutional Neural Networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published