Changeset 11981 for branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits
- Timestamp:
- 02/11/15 20:11:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.Bandits/Policies/UCTPolicy.cs
r11806 r11981 19 19 public int SelectAction(Random random, IEnumerable<IBanditPolicyActionInfo> actionInfos) { 20 20 var myActionInfos = actionInfos.OfType<DefaultPolicyActionInfo>(); 21 int bestAction = -1;22 21 double bestQ = double.NegativeInfinity; 23 22 int totalTries = myActionInfos.Sum(a => a.Tries);
Note: See TracChangeset
for help on using the changeset viewer.