Changeset 12295 for branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Algorithms.GrammaticalOptimization
- Timestamp:
- 04/08/15 13:05:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Algorithms.GrammaticalOptimization/SequentialDecisionPolicies/GenericPolicy.cs
r12294 r12295 48 48 foreach (var afterState in afterStates) { 49 49 if (!Done(afterState)) { 50 activeAfterStates[idx] = GetValue(afterState); 50 if (GetTries(afterState) == 0) 51 activeAfterStates[idx] = double.PositiveInfinity; 52 else 53 activeAfterStates[idx] = GetValue(afterState); 51 54 actionIndexMap[idx] = originalIdx; 52 55 idx++; … … 179 182 Console.WriteLine(Q.Values.Max()); 180 183 var topTries = Q.Keys.OrderByDescending(key => T[key]).Take(50); 181 var topQs = Q.Keys.Where(key =>key.Contains(",")).OrderByDescending(key => Q[key]).Take(50);184 var topQs = Q.Keys.Where(key => key.Contains(",")).OrderByDescending(key => Q[key]).Take(50); 182 185 foreach (var t in topTries.Zip(topQs, Tuple.Create)) { 183 186 var id1 = t.Item1;
Note: See TracChangeset
for help on using the changeset viewer.