Code Monkey home page Code Monkey logo

me-trpo's Introduction

Model-Ensemble Trust-Region Policy Optimization (ME-TRPO)

Paper

ME-TRPO is a deep model-based reinforcement learning algorithm that uses neural networks to model both the dynamics and the policy. The dynamics model maintains uncertainty due to limited data through an ensemble of models. The algorithm alternates among adding transitions to a replay buffer, optimizing the dynamics models given the buffer, and optimizing the policy given the dynamics models in Dyna's style. This algorithm significantly helps alleviating the model bias problem in model-based RL, when the policy exploits the error in the dynamics model. In many Mujoco domains, we show that it can achieve the same final performance as model-free approaches while using 100x less data. Here we assume that the reward function can be specified.

Set-up

  1. Install rllab and conda.
  2. Create a python environment and install dependencies conda env create -f tf14.yml.

    Activate the environment source activate tf14.

  3. Put this folder inside rllab/sandbox/thanard/me-trpo folder.
  4. run python run_model_based_rl.py trpo -env swimmer.

Notes

  1. Environments: swimmer, snake, half-cheetah, and hopper work reliably and converge quickly (in order of hours). ant and humanoid takes a couple days on a single GPU and are not as reliable.
  2. Algorithms:trpo works better than vpg which works better than bptt.
  3. To run snake, put vendor/mujoco_models/snake.xml under rllab/vendor/mujoco_models

Logging

  1. The folder is saved in data/local/ENVNAME/ENVNAME_DATETIME_0001 when running without ec2(by default).
  2. progress.csv contains real_current_validation_cost which is the negative of the reward so far.
  3. info.log contains the full logs of data collection, dynamics model optimization, and policy optimization. Note that we are minimizing the proxy cost, estim_validation_cost. The true cost is shown as real_validation_cost, but unseen to the policy optimizer.

me-trpo's People

Contributors

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