Changeset 6284 for branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators
- Timestamp:
- 05/25/11 10:50:21 (14 years ago)
- Location:
- branches/GP.Grammar.Editor
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/ProbabilisticTreeCreator.cs
r6233 r6284 179 179 ReplaceWithMinimalTree(random, root, parent, argumentIndex); 180 180 } else { 181 var allowedSymbols = (from s in parent.Grammar. Symbols181 var allowedSymbols = (from s in parent.Grammar.GetAllowedChildSymbols(parent.Symbol, argumentIndex) 182 182 where s.InitialFrequency > 0.0 183 where parent.Grammar.IsAllowedChildSymbol(parent.Symbol, s, argumentIndex) 184 where parent.Grammar.GetMinimumExpressionDepth(s) < maxDepth - extensionDepth + 1 185 where parent.Grammar.GetMaximumExpressionLength(s) > targetLength - totalListMinLength - currentLength 183 where s.Fixed || parent.Grammar.GetMinimumExpressionDepth(s) < maxDepth - extensionDepth + 1 184 where s.Fixed || parent.Grammar.GetMaximumExpressionLength(s) > targetLength - totalListMinLength - currentLength 186 185 select s) 187 186 .ToList();
Note: See TracChangeset
for help on using the changeset viewer.