Changeset 5529 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators
- Timestamp:
- 02/21/11 17:49:23 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators/ArgumentCreater.cs
r5510 r5529 180 180 subtree.Grammar.SetMinSubtreeCount(matchingSymbol, defunBranch.NumberOfArguments); 181 181 subtree.Grammar.SetMaxSubtreeCount(matchingSymbol, defunBranch.NumberOfArguments); 182 foreach (var child in subtree.G etAllowedSymbols(0)) {182 foreach (var child in subtree.Grammar.GetAllowedSymbols(subtree.Symbol, 0)) { 183 183 for (int i = 0; i < subtree.Grammar.GetMaxSubtreeCount(matchingSymbol); i++) { 184 184 subtree.Grammar.SetAllowedChild(matchingSymbol, child, i); -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators/ArgumentDuplicater.cs
r5510 r5529 124 124 subtree.Grammar.SetMinSubtreeCount(matchingInvokeSymbol, selectedDefunBranch.NumberOfArguments); 125 125 subtree.Grammar.SetMaxSubtreeCount(matchingInvokeSymbol, selectedDefunBranch.NumberOfArguments); 126 foreach (var child in subtree.G etAllowedSymbols(0)) {126 foreach (var child in subtree.Grammar.GetAllowedSymbols(subtree.Symbol, 0)) { 127 127 for (int i = 0; i < subtree.Grammar.GetMaxSubtreeCount(matchingInvokeSymbol); i++) { 128 128 subtree.Grammar.SetAllowedChild(matchingInvokeSymbol, child, i); -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators/SubroutineDeleter.cs
r5510 r5529 91 91 // deletion by random regeneration 92 92 ISymbolicExpressionTreeNode replacementTree = null; 93 var allowedSymbolsList = invocationCutPoint.Parent.G etAllowedSymbols(invocationCutPoint.ReplacedChildIndex).ToList();93 var allowedSymbolsList = invocationCutPoint.Parent.Grammar.GetAllowedSymbols(invocationCutPoint.Parent.Symbol, invocationCutPoint.ReplacedChildIndex).ToList(); 94 94 var weights = allowedSymbolsList.Select(s => s.InitialFrequency); 95 95 var selectedSymbol = allowedSymbolsList.SelectRandom(weights, random);
Note: See TracChangeset
for help on using the changeset viewer.