Changeset 5529 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators/SubroutineDeleter.cs
- Timestamp:
- 02/21/11 17:49:23 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.