Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update python/algorithms/hedge/test_hedge.py

With small values of eta Hedge.select_arm() becomes unstable. Not 
that the Hedge algorithm appears in the book version I have but still.
  • Loading branch information...
commit 713978270a64ae0a21d07748d4c8f315d453abb3 1 parent ae71e41
@jcborras jcborras authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  python/algorithms/hedge/test_hedge.py
View
2  python/algorithms/hedge/test_hedge.py
@@ -11,7 +11,7 @@
f = open("algorithms/hedge/hedge_results.tsv", "w")
-for eta in [0.1, 0.2, 0.3, 0.4, 0.5]:
+for eta in [.5, .8, .9, 1, 2]:
algo = Hedge(eta, [], [])
algo.initialize(n_arms)
results = test_algorithm(algo, arms, 5000, 250)
Please sign in to comment.
Something went wrong with that request. Please try again.