From fe97a9b78d6a8f2bdb0121a3a07d9eedd308d8e0 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 11 Feb 2019 00:00:34 -0500 Subject: [PATCH] Corrected typo --- rltorch/action_selector/EpsilonGreedySelector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rltorch/action_selector/EpsilonGreedySelector.py b/rltorch/action_selector/EpsilonGreedySelector.py index cbabf64..e537f2f 100644 --- a/rltorch/action_selector/EpsilonGreedySelector.py +++ b/rltorch/action_selector/EpsilonGreedySelector.py @@ -9,5 +9,5 @@ class EpsilonGreedySelector(ArgMaxSelector): # best_act is already implemented in ArgMaxSelector def act(self, state): eps = next(self.epsilon) if isinstance(self.epsilon, collections.Iterable) else self.epsilon - action = self.random_act() if np.random.rand() < epsilon else self.best_act(state) + action = self.random_act() if np.random.rand() < eps else self.best_act(state) return action \ No newline at end of file