Giter Club home page Giter Club logo

rlntm's Introduction

Author: ilyasu@,  [email protected]

This is not an official Google project.

First, install 'strict' (luarocks install strict)
Second, make sure that torch lives in /usr/bin/torch (or edit exprs/run_utils_new.py to point to the right torch path)

To run the gradient checker on the new layers, type

> luarocks install totem
> torch rlntm_pkgs/test_individual_layers.lua


To run a full gradient checker (which includes exact expectations for Reinforce), type:
> torch rlntm_pkgs/RL_check_grad.lua



To train a model that reverses a list, where the input head is forced to move forward, type:
> python exprs/train_reverse.py

It takes about 10,000 parameter updates to converge, which sadly takes 3 days on my workstation
(GPU not required).

If you are not willing to wait for 3 days, please see the output of the included printout log: 
> less rlntm_runs/train_repeatCopy-1/train_reverse-1.stdout

The printout shows the evolution of the execution traces of the RL-NTM, which 
are fun to inspect.



To train a model that solves the repeat copy task, type:

> python exprs/train_repeat_copy.py

It sometimes converges in as little as 1,000 parameter updates. If you
are not willing to wait for a day, please see the output of the
included printout log: 
> less rlntm_runs/train_repeatCopy-1/train_repeatCopy-1.stdout




WARNING:  These experiments are fragile.  It is possible that they will not succeed with 
the provided random seeds if the random number generation library is different. 
We observed that between 30-50% of the random seeds produce the desired result, so you may need
to tweak it a modest number of times.

rlntm's People

Contributors

ilyasu123 avatar

Watchers

James Cloos 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.