GithubHelp home page GithubHelp logo

gnn_tensorflow's Introduction

Deep Graph Convolutional Neural Network implement by tensorflow

1 - About

GNN is a novel and powerful deep neural network for graph classification, It usually consists of (1)graph convolution layer which extract local substructure features for individual links and (2) a SortPooling layer which aggregates node-level features into a graph-level feature vector. It's directly accepts graph data as input without the need of first transforming graphs into tensors, make end-to-end gradient-based training possible. And it enables learning from global topology by sorting the vertex features instead of summing them up, which is supportd by SortPooling layer.

This repository provides a reference implementation of GNN based on Tensorflow.

For more information, please refer to:

M. Zhang, Z. Cui, M. Neumann, and Y. Chen, An End-to-End Deep Learning Architecture for Graph Classification, Proc. AAAI Conference on Artificial Intelligence (AAAI-18). and the origal PyTorch implementation of DGCNN is here

2 - Basic Usage

2.1 - Example

To run the GNN on the mutag(default setting), type the following command on the home directory:

python main.py

2.2 - Options

  • python main.py --data proteins to run GNN on proteins
  • python main.py --epoch 200 to assign the number of epochs, default value is 100
  • python main.py -r 0.00001 or python main.py --learning_rate 0.00001 to set the learning rate which determine the speed of update.
  • ...

you can check out the other options available to use python main.py --help

3 - Result

Dataset Mutag NCI1 PROTEINS D&D
Nodes(max) 28 111 620 5748
Nodes(avg.) 17.93 29.87 39.06 284.32
Nodes(min) 10 3 4 30
Graphs 188 4110 1113 1178
GNN 0.8684(0.058844) 0.7073(0.018595) 0.7509(0.027505) 0.7432(0.047040)

To be continued...

gnn_tensorflow's People

Contributors

calemsy avatar

Stargazers

Giorgos Christou avatar The Bug avatar Mallika  avatar Zain Abdalwahab avatar Ali Larian avatar Henry avatar David Snowden avatar KevinF avatar Ahmed Hani Ibrahim avatar  avatar  avatar JINGTUN ZHANG 张劲暾 avatar  avatar

Watchers

James Cloos avatar JINGTUN ZHANG 张劲暾 avatar

gnn_tensorflow's Issues

Question about batch size

Hi Shuai,

I find the code in gnn.py takes 1 record per batch, will it suffers the problem of overfitting or takes more time in training and inference? And what is your motivation for this design.

Anyway, I learned a lot from your implementation. Thanks!

About dataset

Hello! I just started to learn about GNN, your article is very helpful to me. I would like to ask how to use my own data? What data format is required and how is it converted?
Could you help me? Thanks a lot!

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.