Commit 138715fb authored by Nicola Gatto's avatar Nicola Gatto
Browse files

Consider eps when adding OU noise

parent f0b12597
Pipeline #148561 canceled with stages
in 32 seconds
......@@ -168,5 +168,5 @@ class OrnsteinUhlenbeckStrategy(BaseStrategy):
def select_action(self, values):
noise = self._evolve_state()
action = values + (self.cur_eps * noise)
action = (1.0 - self.cur_eps) * values + (self.cur_eps * noise)
return np.clip(action, self._action_low, self._action_high)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment