Changeset 18132 for trunk/HeuristicLab.Problems.GrammaticalEvolution
- Timestamp:
- 12/15/21 11:50:57 (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol (added) merged: 18091,18093,18100,18112-18121,18123-18131
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.GrammaticalEvolution
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol/HeuristicLab.Problems.GrammaticalEvolution (added) merged: 18112
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.GrammaticalEvolution/3.4/Mappers/PIGEMapper.cs
r17180 r18132 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); -
trunk/HeuristicLab.Problems.GrammaticalEvolution/3.4/SymbolicRegression/GESymbolicExpressionGrammar.cs
r17413 r18132 81 81 var constVal = rand.NextDouble() * 20.0 - 10.0; 82 82 constant.Name = string.Format("{0:0.000}", constVal); 83 constant.MinValue = constVal;84 constant.MaxValue = constVal;85 constant.ManipulatorSigma = 0.0;86 constant.ManipulatorMu = 0.0;87 constant.MultiplicativeManipulatorSigma = 0.0;88 83 } while (constants.Any(c => c.Name == constant.Name)); // unlikely, but it could happen that the same constant value is sampled twice. so we resample if necessary. 89 84 constants.Add(constant);
Note: See TracChangeset
for help on using the changeset viewer.