资源算法me-trpo

me-trpo

2020-01-16 | |  32 |   0 |   0

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.






上一篇:parallel-trpo

下一篇:TRPO-TensorFlow

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...