[rllib] Add vf clipping param to fix pendulum example (#2921)

* add vf clip

* fix test

* Update ppo.py
This commit is contained in:
Eric Liang
2018-09-23 13:11:17 -07:00
committed by GitHub
parent 9f9e49e4a1
commit 8331d1ebe0
4 changed files with 11 additions and 5 deletions
+3
View File
@@ -40,6 +40,9 @@ DEFAULT_CONFIG = with_common_config({
"entropy_coeff": 0.0,
# PPO clip parameter
"clip_param": 0.3,
# Clip param for the value function. Note that this is sensitive to the
# scale of the rewards. If your expected V is large, increase this.
"vf_clip_param": 10.0,
# Target value for KL divergence
"kl_target": 0.01,
# Number of GPUs to use for SGD