Skip to content

Commit

Permalink
use tau
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazy Programmer committed Dec 12, 2017
1 parent ccc3a5b commit f1bdc41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rl/comparing_explore_exploit_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def sample(self):
return np.random.randn() / np.sqrt(self.lambda_) + self.predicted_mean

def update(self, x):
# assume tau is 1
self.lambda_ += 1
self.lambda_ += self.tau
self.sum_x += x
self.predicted_mean = self.tau*self.sum_x / self.lambda_

Expand Down

0 comments on commit f1bdc41

Please sign in to comment.