Changeset 17492
- Timestamp:
- 04/02/20 10:02:39 (5 years ago)
- Location:
- trunk/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/AllArchitectureAlteringOperatorsTest.cs
r17180 r17492 86 86 par1 = (SymbolicExpressionTree)trees.SampleRandom(random).Clone(); 87 87 } while (par0.Length > MAX_TREE_LENGTH || par1.Length > MAX_TREE_LENGTH); 88 var newTree = SubtreeCrossover.Cross(random, par0, par1, 0.9, MAX_TREE_LENGTH, MAX_TREE_DEPTH);88 var newTree = SubtreeCrossover.Cross(random, par0, par1, 1.0, 0.9, MAX_TREE_LENGTH, MAX_TREE_DEPTH); 89 89 stopwatch.Stop(); 90 90 Util.IsValid(newTree); -
trunk/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/SubtreeCrossoverTest.cs
r17180 r17492 54 54 var par0 = (ISymbolicExpressionTree)trees.SampleRandom(random).Clone(); 55 55 var par1 = (ISymbolicExpressionTree)trees.SampleRandom(random).Clone(); 56 children[i] = SubtreeCrossover.Cross(random, par0, par1, 0.9, 100, 10);56 children[i] = SubtreeCrossover.Cross(random, par0, par1, 1.0, 0.9, 100, 10); 57 57 } 58 58 trees = children;
Note: See TracChangeset
for help on using the changeset viewer.