Changeset 18112 for branches/3140_NumberSymbol/HeuristicLab.Problems.GrammaticalEvolution/3.4/Mappers
- Timestamp:
- 12/09/21 14:28:17 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.GrammaticalEvolution/3.4/Mappers/PIGEMapper.cs
r17180 r18112 42 42 /// integer vector and rule may be one value from a "content" integer vector. 43 43 /// 44 /// Order: NT = nont % Num . NT ... determines, which non-terminal to expand next45 /// Content: Rule = rule % Num . Rules ... rule determination as with standard GE mappers44 /// Order: NT = nont % Number. NT ... determines, which non-terminal to expand next 45 /// Content: Rule = rule % Number. Rules ... rule determination as with standard GE mappers 46 46 /// 47 47 /// Four mutation and crossover strategies possible: … … 155 155 current.AddSubtree(GetRandomTerminalNode(current, grammar, random)); 156 156 } else { 157 // Order: NT = nont % Num . NT157 // Order: NT = nont % Number. NT 158 158 int nt = NontVector[genotypeIndex] % nonTerminals.Count; 159 159 ISymbolicExpressionTreeNode current = nonTerminals[nt]; 160 160 nonTerminals.RemoveAt(nt); 161 161 162 // Content: Rule = rule % Num . Rules162 // Content: Rule = rule % Number. Rules 163 163 ISymbolicExpressionTreeNode newNode = GetNewChildNode(current, genotype, grammar, genotypeIndex, random); 164 164 int arity = SampleArity(random, newNode, grammar);
Note: See TracChangeset
for help on using the changeset viewer.