Giter VIP home page Giter VIP logo

hiro_pytorch's Introduction

Overview

An implementation of Data-Efficient Hierarchical Reinforcement Learning (HIRO) in PyTorch. Demonstration

Installation

  1. Follow installation of OpenAI Gym Mujoco Installation
1. Obtain a 30-day free trial on the MuJoCo website or free license if you are a student. The license key will arrive in an email with your username and password.
2. Download the MuJoCo version 2.0 binaries for Linux or OSX.
3. Unzip the downloaded mujoco200 directory into ~/.mujoco/mujoco200, and place your license key (the mjkey.txt file from your email) at ~/.mujoco/mjkey.txt.
  1. Install Dependencies
pip install -r requirements.txt

Run

For HIRO,

python main.py --train

For TD3,

python main.py --train --td3

Evaluate Trained Model

Passing --eval argument will read the most updated model parameters and start playing. The goal is to get to the position (0, 16), which is top left corner.

For HIRO,

python main.py --eval

For TD3,

python main.py --eval --td3

Trainining result

Blue is HIRO and orange is TD3

Succss Rate

Success_Rate

Reward

reward_Reward

Intrinsic Reward

reward_Intrinsic_Reward

Losses

Higher Controller Actor
loss_actor_loss_high

Higher Controller Critic
loss_critic_loss_high

Lower Controller Actor
loss_actor_loss_low

Lower Controller Critic
loss_critic_loss_low

TD3 Controller Actor
loss_actor_loss_td3

TD3 Controller Critic
loss_critic_loss_td3

hiro_pytorch's People

Contributors

fanshaoliu avatar watakandai avatar

Watchers

 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.