Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/21/09 16:14:40 (15 years ago)
Author:
gkronber
Message:

Added new predefined function libraries for symbolic regression algorithms. Changed CEDMA dispatcher to choose a function library randomly. #813 (GP structure-identification algorithms that use only a simple function library)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.Operators/3.3/Initialization/ProbabilisticTreeCreator.cs

    r2560 r2566  
    5757
    5858    public static IFunctionTree Create(IRandom random, FunctionLibrary funLib, int minSize, int maxSize, int maxHeight) {
    59       int treeSize = random.Next(minSize, maxSize + 1);
     59      int treeSize = random.Next(minSize, maxSize);
    6060      IFunctionTree root;
    6161      int tries = 0;
     
    6565        if (tries++ >= MAX_TRIES) {
    6666          // try a different size
    67           treeSize = random.Next(minSize, maxSize + 1);
     67          treeSize = random.Next(minSize, maxSize);
    6868          tries = 0;
    6969        }
Note: See TracChangeset for help on using the changeset viewer.