Skip to content

Commit f1bdc41

Browse files
author
Lazy Programmer
committed
use tau
1 parent ccc3a5b commit f1bdc41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rl/comparing_explore_exploit_methods.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ def sample(self):
2727
return np.random.randn() / np.sqrt(self.lambda_) + self.predicted_mean
2828

2929
def update(self, x):
30-
# assume tau is 1
31-
self.lambda_ += 1
30+
self.lambda_ += self.tau
3231
self.sum_x += x
3332
self.predicted_mean = self.tau*self.sum_x / self.lambda_
3433

0 commit comments

Comments
 (0)