Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/17/11 11:51:09 (13 years ago)
Author:
bburlacu
Message:

#1654: Updated Full-, Grow- and RampedHalfAndHalf tree creators so that the Create call has the exact same signature for all of them (including the probabilistic tree creator); adjusted tests. Added CreateTree interface method and tree creator selection mechanism in the Sample Tree View.

Location:
trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/FullTreeCreatorTest.cs

    r6949 r7012  
    3232    private const int POPULATION_SIZE = 10000;
    3333    private const int MAX_TREE_DEPTH = 10;
     34    private const int MAX_TREE_LENGTH = 1000;
    3435    private TestContext testContextInstance;
    3536
     
    5556      stopwatch.Start();
    5657      for (int i = 0; i != POPULATION_SIZE; i++) {
    57         randomTrees.Add(FullTreeCreator.Create(random, grammar, MAX_TREE_DEPTH));
     58        randomTrees.Add(FullTreeCreator.Create(random, grammar, MAX_TREE_DEPTH, MAX_TREE_LENGTH));
    5859      }
    5960      stopwatch.Stop();
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/GrowTreeCreatorTest.cs

    r6949 r7012  
    3232    private const int POPULATION_SIZE = 10000;
    3333    private const int MAX_TREE_DEPTH = 10;
     34    private const int MAX_TREE_LENGTH = 50;
    3435    private TestContext testContextInstance;
    3536
     
    5556      stopwatch.Start();
    5657      for (int i = 0; i != POPULATION_SIZE; i++) {
    57         randomTrees.Add(GrowTreeCreator.Create(random, grammar, MAX_TREE_DEPTH));
     58        randomTrees.Add(GrowTreeCreator.Create(random, grammar, MAX_TREE_DEPTH, MAX_TREE_LENGTH));
    5859      }
    5960      stopwatch.Stop();
Note: See TracChangeset for help on using the changeset viewer.