Giter VIP home page Giter VIP logo

pgps's Introduction

Coupling Policy Gradient with Population-based Search (PGPS)

In the proposed algorithm, called Coupling Policy Gradient with Population-based Search (PGPS), a single TD3 agent, which learns by a gradient from all experiences generated by population, leads a population by providing its critic function Q as a surrogate to select better performing next generation population from candidates. On the other hand, if the TD3 agent falls behind the CEM population, then the TD3 agent is updated toward the elite member of CEM population using loss function augmented with the distance between the TD3 and the CEM elite.

Getting Started

  1. Create and activate conda environment
cd PGPS-master # Download or clone whole files
conda env create -f environment.yml
source activate pgps
  1. Main packages' versions
'gym==0.16.0' 
'mujoco-py==2.0.2.9' 
'torch==1.2.0+cu92' 

(Reference) SAC (rllab) envirionment

environment_rllab.yml 
'gym==0.10.0' 
'mujoco-py==1.50.0.1' 
'torch==1.2.0+cu92' 

The environment should be ready to run. See examples section for examples of how to train an agent and play the pretrained one.

Examples

Experiment Environments

'Hopper-v2'
'HalfCheetah-v2'
'Swimmer-v2'
'Ant-v2'
'Walker2d-v2'

Training an agent

python Main.py -env_name "HalfCheetah-v2" -seed=1 -ada_steps -guided -q_surr

Previous training results

'learning_curves' Folder

Playing the pretrained agent

python Play_Model.py -env_name "HalfCheetah-v2" -seed=1 -render=True

pgps's People

Contributors

namkim88 avatar

Stargazers

Jonaid Shianifar avatar Khang Tran avatar Ke Xue avatar

Watchers

 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.