Giter Club home page Giter Club logo

graph-neural-networks's Introduction

Graph Neural Networks

This project shows multiple Jupyter Notebooks which demonstrate a variety of Graph Neural Network models built and tuned to analyze the relationships between Facebook pages (nodes) and to classify unseen data into categories for the Facebook Large Page-Page Network. The network is Undirected, with 22k nodes and 171k edges.

List of different Graph Models:

  • Network Analysis: loaded nodes and edges into the network, set feature variables as node attributes, computed connectivity and centrality metrics of the network.
  • GraphSAGE: prepared network by loading nodes and edges, flowed network into StellarGraph network for modelling, generated train and test set with GraphSAGENodeGenerator, which took a sample set of data into modelling. The model achieved the accuracy score of train/test set at 91%/86%.
  • GCN: prepared network similar to GraphSAGE, but generated full-batch train and test set instead of sub-sampling by FullBatchNodeGenerator. The model is conceptualized from the mechanism of CNN in which a kernel of (axb) layer acts as a sliding window across the network to learn features from the node itself but from the neighbors as well. The model achieved the accuracy score of train/test at 92%/86%.
  • GAT: similar pre-processing steps as GCN, but GAT model pays more attention to "important neighbors" while sliding through the network with the a kernel of (axb) layer and has better runtime due to attention layers being calculated in parallel. The model achieved the accuracy score of train/test set at 92%/90%, the higest among all models.

Requirements

  • pandas
  • numpy
  • matplotlib
  • seaborn
  • sklearn
  • tensorflow
  • networkx
  • stellargraph

graph-neural-networks's People

Contributors

andrewnguyen07 avatar

Stargazers

グラシア avatar

Watchers

 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.