Git Product home page Git Product logo

deepthinking's Introduction

Thinking Deeply with Recurrence: Generalizing from Easy to Hard Sequential Reasoning Problems

This repository is the official implementation of Thinking Deeply with Recurrence: Generalizing from Easy to Hard Sequential Reasoning Problems.

Requirements

To install requirements:

pip install -r requirements.txt

Maze Data

The maze data can be downloaded from here. Maze generation code is also available in the maze_data directory.

Training

Our training routine will run an evaluation after training is done. To train a recurrent model to solve mazes, run this command:

python train_model.py --model recur_residual_network_segment --width 2 --depth 36 --dataset mazes_small --lr 0.001 --lr_factor 0.25 --lr_schedule 40 100 --epochs 160 --problem segment --save_json --save_period 50 --train_batch_size 50 

Launch scripts that run sets of experiments included in the paper are available in the launch directory. For training models one at a time, or tinkering with the setup, you can run train_model.py on its own. See the arguments in train_model.py for all the options.

Evaluation

To evaluate a model after training, run train_model.py with the --model_path argument to point to the saved model. Be sure to set the number of epochs to the number of epochs used to train the saved model, as this will skip the training loop.

Results

Results form experiments exploring depth versus recurrence and maze solving networks are available in the paper.

deepthinking's People

Contributors

arjung27 avatar aks2203 avatar

Stargazers

Xu Chen avatar softlysinging avatar  avatar Theodore Galanos avatar  avatar 爱可可-爱生活 avatar  avatar Rohan Singh avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

vijayvee

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.