Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/05/12 10:37:43 (13 years ago)
Author:
bburlacu
Message:

#1866: Fixed small omission in the full tree creator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/FullTreeCreator.cs

    r7961 r7964  
    194194          throw new InvalidOperationException("No symbols are available for the tree.");
    195195        var weights = possibleSymbols.Select(s => s.InitialFrequency).ToList();
    196         var selectedSymbol = possibleSymbols.SelectRandom(random);
     196        var selectedSymbol = possibleSymbols.SelectRandom(weights, random);
    197197        var tree = selectedSymbol.CreateTreeNode();
    198198        if (tree.HasLocalParameters) tree.ResetLocalParameters(random);
Note: See TracChangeset for help on using the changeset viewer.