Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/03/08 13:02:26 (16 years ago)
Author:
gkronber
Message:

fixed a bug that caused a bias towards trees of size 1 in the population initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/TreeGardener.cs

    r202 r284  
    378378        return selectedTerminal;
    379379      } else {
    380         IFunction[] possibleFunctions = allFunctions.Where(f => GetMinimalTreeHeight(f) <= maxTreeHeight &&
     380        IFunction[] possibleFunctions = functions.Where(f => GetMinimalTreeHeight(f) <= maxTreeHeight &&
    381381          GetMinimalTreeSize(f) <= maxTreeSize).ToArray();
    382382        IFunction selectedFunction = RandomSelect(possibleFunctions);
Note: See TracChangeset for help on using the changeset viewer.