From 49a99c7d23bfa70a852efeb843a971d867815738 Mon Sep 17 00:00:00 2001 From: Tim Zaman Date: Fri, 5 Apr 2019 14:46:01 -0700 Subject: [PATCH] Add eps to normalization (#797) --- baselines/ddpg/ddpg_learner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baselines/ddpg/ddpg_learner.py b/baselines/ddpg/ddpg_learner.py index 3fc8a77..9058334 100755 --- a/baselines/ddpg/ddpg_learner.py +++ b/baselines/ddpg/ddpg_learner.py @@ -17,7 +17,7 @@ except ImportError: def normalize(x, stats): if stats is None: return x - return (x - stats.mean) / stats.std + return (x - stats.mean) / (stats.std + 1e-8) def denormalize(x, stats):