Giter Site home page Giter Site logo

learning_to_execute's Introduction

Learning to Execute

This software allows to train a Recurrent Neural Network (RNN) with Long-Short Term Memory (LSTM) units on short snippets of python code. The Network is trained to predict the output of the generated programs.

Execution

Please install Torch 7 http://torch.ch/ with the cunn package. Moreover, our software requires an NVIDIA GPU.

To execute the program, call:

torch main.lua

This program starts training the LSTM, and displays intermediate results. main.lua can be executed with the following options

torch main.lua -gpuidx 1 -target_length 6 -target_nesting 3

  • gpuidx: chooses a GPU for the program
  • target_length: is a maximum number of digits in every number generated in test programs in a test dataset.
  • target_nesting: is the depth of the nesting in the generated programs in the test dataset.

Moreover, the command

torch data.lua

verifies that training data is correct, by evaluating 1000 samples with a python interpreter (python2.7 is required).

More information about the scientific work is provided at http://arxiv.org/abs/1410.4615

This software is located at https://github.com/wojciechz/learning_to_execute

learning_to_execute's People

Contributors

wojzaremba avatar wojciechz avatar

Watchers

James Cloos avatar Tim Rocktäschel 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.