Giter Site home page Giter Site logo

mloncode / ggnn_graph_classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bdqnghi/ggnn_graph_classification

0.0 4.0 0.0 3.24 GB

A PyTorch Implementation of Gated Graph Sequence Neural Networks (GGNN) for Graph Classification

License: MIT License

ggnn_graph_classification's Introduction

A PyTorch Implementation of GGNN for Graph Classification

This is a PyTorch implementation of the Gated Graph Sequence Neural Networks (GGNN) as described in the paper Gated Graph Sequence Neural Networks by Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel.

This implementation focuses on the Graph Level output, which hasn't been exploiting from the original code base. In concrete, we focus the Graph Classification task, which requires the Graph Level output to be implemented.

We took the dataset of 104 programming problems, which comprises of 52000 cpp files from the paper Convolutional Neural Networks over Tree Structures for Programming Language Processing and parse the cpp files into the graph representation based on the details of the paper Learning to Represent Programs with Graphs.

What is GGNN?

  • Solve graph-structured data and problems
  • A gated propagation model to compute node representations
  • Unroll recurrence for a fixed number of steps and use backpropogation through time
  • An output model to make predictions on nodes

Requirements

  • python==3.6
  • PyTorch>=0.2

Run

Train and test the GGNN:

python3 main_ggnn.py --training --cuda (use GPUs or not)

References

ggnn_graph_classification's People

Contributors

bdqnghi avatar chingyaoc avatar yijunyu avatar

Watchers

 avatar  avatar  avatar  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.