Changeset 12924 for branches/HeuristicLab.Algorithms.IteratedSentenceConstruction/HeuristicLab.Algorithms.IteratedSymbolicExpressionConstruction/3.3/Policies
- Timestamp:
- 08/28/15 17:50:53 (9 years ago)
- Location:
- branches/HeuristicLab.Algorithms.IteratedSentenceConstruction/HeuristicLab.Algorithms.IteratedSymbolicExpressionConstruction/3.3/Policies
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Algorithms.IteratedSentenceConstruction/HeuristicLab.Algorithms.IteratedSymbolicExpressionConstruction/3.3/Policies/BoltzmannExplorationSymbolicExpressionConstructionPolicy.cs
r12923 r12924 45 45 var idxs = Enumerable.Range(0, followStates.Count); 46 46 // find best action 47 var bestQuality = double.NegativeInfinity;48 47 if (followStates.Any(s => StateValueFunction.Tries(s) == 0)) { 49 48 return idxs.Where(idx => StateValueFunction.Tries(followStates[idx]) == 0).SampleRandom(random); -
branches/HeuristicLab.Algorithms.IteratedSentenceConstruction/HeuristicLab.Algorithms.IteratedSymbolicExpressionConstruction/3.3/Policies/RandomSymbolicExpressionConstructionPolicy.cs
r12923 r12924 23 23 24 24 public sealed override void Update(IEnumerable<object> stateSequence, double quality) { 25 26 25 // ignore 27 26 }
Note: See TracChangeset
for help on using the changeset viewer.