Skip to content

Commit 17f70c5

Browse files
author
EC2 Default User
committed
forgot to apply caps to bandit scores.
1 parent ec0a438 commit 17f70c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def score_index(model_key="model.pickle"):
301301
orig[i] = orig[i].replace("<div", f"<div data-score={yhat[i]}" ,1)
302302
# Five percent greedy-epsilon bandit
303303
if numpy.random.uniform() < .05 :
304-
yhat[i] = numpy.random.uniform()
304+
yhat[i] = numpy.random.uniform() * bandit_max
305305
orig[i] = orig[i].replace("<div", "<div data-bandit=1", 1)
306306

307307

0 commit comments

Comments
 (0)