Coder Social home page Coder Social logo

nnabla-ggnn's Introduction

nnabla-ggnn: NNabla Implementation of GG-NN

This repository is a NNabla implementation of Gated Graph Sequence Neural Networks (GG-NN) proposed in the paper Gated Graph Sequence Neural Networks by Y.Li, D.Tarlwo, M.Brockschmdit, and R. Zemel. GG-NNs can use graph-structured data as inputs of neural networks, and gets high accuracy on some bAbI-tasks. This implementation is tested with bAbI 15 and bAbI 19, and gets high accuracy (100% for bAbI15 and 95% for bAbI 19). The official implementation is available in the GitHub repository.

Requirements

  • Python 3.x (tested with Python 3.6.5)
  • NNabla 0.9.9

Run Examples

bAbI 15

$ babi-tasks 15 1000 > train.txt # Notes: babi-tasks can be installed from https://github.com/facebook/bAbI-tasks
$ babi-tasks 15 1000 > vaild.txt
$ python ./main.py bAbI15 --train-file train.txt --valid-file valid.txt # --context cudnn

My result: get 100% validation accuracy after 200 iterations (1 epochs).

bAbI 19

$ babi-tasks 19 1000 > train.txt # Notes: babi-tasks can be installed from https://github.com/facebook/bAbI-tasks
$ babi-tasks 19 1000 > vaild.txt
$ python ./main.py bAbI10 --train-file train.txt --valid-file valid.txt # --context cudnn

My result: get 95% validation accuracy after 54000 iterations (216 epochs).

TODO

  • mini-batched training
    • I didn't implement the mini-batch version.
    • I think it is not difficult to implement mini-batched training if the number of vertices in graph is same.

References

nnabla-ggnn's People

Watchers

 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.