We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec0a438 commit 17f70c5Copy full SHA for 17f70c5
analysis.py
@@ -301,7 +301,7 @@ def score_index(model_key="model.pickle"):
301
orig[i] = orig[i].replace("<div", f"<div data-score={yhat[i]}" ,1)
302
# Five percent greedy-epsilon bandit
303
if numpy.random.uniform() < .05 :
304
- yhat[i] = numpy.random.uniform()
+ yhat[i] = numpy.random.uniform() * bandit_max
305
orig[i] = orig[i].replace("<div", "<div data-bandit=1", 1)
306
307
0 commit comments