Giter Club home page Giter Club logo

dual-policy-distillation's Introduction

Dual Policy Distillation

This is the repository for experiment code of dual policy distillation (IJCAI'20). Please see our paper for more details.

Installation

  1. Please follow the instructions to install the mujoco and mujoco-py

  2. Make sure that you have Python 3.5+ and pip installed:

git clone https://github.com/datamllab/dual-policy-distillation.git
pip install -r requirements.txt
pip install -e .
	

Example

  1. DPD_DDPG
python baselines/dpd_ddpg/main.py --env-id HalfCheetah-v2 --num-timesteps 5000000  --nb-epochs 2500 --dis-batch-size 64 --actor-dis-lr 1e-4 --exp-scale 0.75
  1. DPD_PPO
python baselines/dpd_ppo/main.py --env HalfCheetah-v2  --num-timesteps 20000000 --exp-scale 0.5

Hyperparameters

  1. DPD_DDPG
usage: main.py [-h] [--env-id ENV_ID] [--render-eval] [--no-render-eval]
               [--layer-norm] [--no-layer-norm] [--render] [--no-render]
               [--normalize-returns] [--no-normalize-returns]
               [--normalize-observations] [--no-normalize-observations]
               [--seed SEED] [--critic-l2-reg CRITIC_L2_REG]
               [--batch-size BATCH_SIZE] [--dis-batch-size DIS_BATCH_SIZE]
               [--actor-lr ACTOR_LR] [--actor-dis-lr ACTOR_DIS_LR]
               [--critic-lr CRITIC_LR] [--exp-scale EXP_SCALE] [--popart]
               [--no-popart] [--gamma GAMMA] [--reward-scale REWARD_SCALE]
               [--clip-norm CLIP_NORM] [--nb-epochs NB_EPOCHS]
               [--nb-epoch-cycles NB_EPOCH_CYCLES]
               [--nb-train-steps NB_TRAIN_STEPS]
               [--nb-dis-train-steps NB_DIS_TRAIN_STEPS]
               [--nb-eval-steps NB_EVAL_STEPS]
               [--nb-rollout-steps NB_ROLLOUT_STEPS] [--noise-type NOISE_TYPE]
               [--num-timesteps NUM_TIMESTEPS] [--evaluation]
               [--no-evaluation] [--log_dir LOG_DIR]
  1. DPD_PPO
usage: main.py [-h] [--env-id ENV_ID] [--seed SEED]
               [--num-timesteps NUM_TIMESTEPS] [--play] [--log-dir LOG_DIR]
               [--exp-scale EXP_SCALE]

Citation

@article{lai2020dual,
  title={Dual Policy Distillation},
  author={Lai, Kwei-Herng and Zha, Daochen and Li, Yuening and Hu, Xia},
  journal={arXiv preprint arXiv:2006.04061},
  year={2020}
}

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.