Changeset 11806 for branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/BanditPolicies/RandomPolicy.cs
- Timestamp:
- 01/20/15 20:25:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/BanditPolicies/RandomPolicy.cs
r11742 r11806 17 17 return actionInfos 18 18 .Select((aInfo, idx) => Tuple.Create(aInfo, idx)) 19 .Where(p => !p.Item1.Disabled)20 19 .SelectRandom(random).Item2; 21 20 }
Note: See TracChangeset
for help on using the changeset viewer.