ddpg training and testing code with libraries needed
The code in this project is modified based on https://github.com/karthikeyaparunandi/DDPG_D2C
-
OS: Windows10 Community
-
gym==0.10.9
- after installation, replace the gym/gym folder with the gym folder inthis repository
-
keras==2.2.0
-
mujoco_py (mjpro150)
- download mujoco150 from https://www.roboti.us/index.html, install and get a license
- install mujoco_py from the .zip file in folder mujoco_py
-
tensorflow
- cpu version: 1.10.0
- gpu version: 1.8.0
-
keras-rl
Install the cpu version tensorflow.
-
OS: Windows10 Community
-
GPU: NVIDIA MX150
-
CUDA: v9.1
-
CUDNN: v7.1
-
Tensorflow-GPU: 1.8.0
ddpg_workspace
-
train_and_test
- $(modelname).py: run this file to do ddpg training and testing, also change step number, process noise, OU process parameter, etc in this file.
- common_func.py: call_back function and result data file modification function that adds key
process_noise_stdandthetafor plot legends. - perfcheck.py: do Monte-Carlo runs to evaluate the trained policy for its robustness.
-
results
- stochasticity_perf_plot.py: plot the robustness evaluation results.
- visualize_log.py: plot the training cost/cost fraction curve.
- visualize_processnoise.py: plot training curve for multiple training runs under different noise parameters.
- $(modelname) folders: training and testing data are saved here.
-
The code is first used in the preparation for the D2C DDPG comparison paper and its supplementary file which are submitted to ICML2020.
-
This tensorflow can work with numpy==1.16, however some issues may occur with numpy==1.14.


