Git Product home page Git Product logo

distributive-prioritised-hindsight-experience-replay's Introduction

Distributive Prioritised Hindsight Experience Replay

General Hyper-Parameters:

  • ENV_NAME = 'FetchSlide-v0'/'FetchPush-v0'/'FetchPickAndPlace-v0'/'FetchReach-v0' (if using FetchReach-v0, change ddpg.py/line 393 &ddpg.py/line 388 as per instructions of the function)
  • limit (replay memory)
  • critic_lr = 5e-4 (default)
  • actor_lr = 5e-4 (default)
  • batch_size = 32(default)
  • nb_steps = 1500000 (#steps of training)
  • file_interval = 10000 (#steps before saving)
  • network_architechture (no idea what could be best)
  • targer_model_update = 1e-3 (soft update for target model)
  • delta_clip = np.inf (huber loss hyperparameter) [ignore for now]

Hindsight Experience Replay

  • HER = True/False
  • K = any interger (default: 4 works best)
  • HER_strategy = 'future' OR 'episode'

Prioritised Experience Replay

  • PER = True/False
  • alpha = float between 0 to 1
  • beta = float between 0 to 1
  • epsilon = very small (edge case for sampling)

Distributive PHER

  • actor batch size
  • actor memory size
  • actor memory prioritisation (alpha)
  • actor bias annealing (beta)

Instructions:

General:

  • Set the permission of .sh file by doing: chmod u+x train.sh
  • Set the hyperparameters in the train.sh file accordingly
  • After setting the hyperparameters, run ./train.sh
  • To stop training, press Ctrl+C at any point. (Try stopping after 10000 steps)
  • The code then plots and tests 5 episodes (default) of the learned model
  • To resume training from pretrained weights, use argument --pretrained

Extra:

  • Keep check_json.py in the same folder as ddpg.py (in general keep the entire folder strucuture unchanges)
  • make /HER/ and /PHER/ subfolders in examples directory

Note: Code based on keras-rl (https://github.com/keras-rl/keras-rl) repository

References:

  1. keras-rl, Matthias Plappert, 2016, https://github.com/keras-rl/keras-rl
  2. Hindsight Experience Replay(A. Marcin et al, 2018)
  3. DISTRIBUTED PRIORITIZED EXPERIENCE REPLAY (Dan Horgan et al, 2018)
  4. Universal Value Function Approximators (S. Tom et al, 2017)
  5. https://github.com/minsangkim142/hindsight-experience-replay/blob/master/HER.py

distributive-prioritised-hindsight-experience-replay's People

Contributors

ayushraina10 avatar ojasjoshi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ayushraina10

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.