Permalink
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...
1 parent ae71e41 commit 713978270a64ae0a21d07748d4c8f315d453abb3 @jcborras jcborras committed Dec 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit 7139782

Please sign in to comment.