Changeset 11793 for branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/BanditPolicies
- Timestamp:
- 01/18/15 18:24:58 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/BanditPolicies
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/BanditPolicies/EpsGreedyPolicy.cs
r11742 r11793 26 26 public int SelectAction(Random random, IEnumerable<IBanditPolicyActionInfo> actionInfos) { 27 27 Debug.Assert(actionInfos.Any()); 28 if (random.NextDouble() > eps) {28 if (random.NextDouble() >= eps) { // eps == 0 should be equivalent to pure exploitation, eps == 1 is pure exploration 29 29 // select best 30 30 var myActionInfos = actionInfos.OfType<DefaultPolicyActionInfo>();
Note: See TracChangeset
for help on using the changeset viewer.