Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/27/15 16:55:07 (9 years ago)
Author:
gkronber
Message:

#2471

  • added a simple implementation of Koza-style symbolic regression
  • added ucb tuned and estimation of variance to tabular quality functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Algorithms.IteratedSentenceConstruction/HeuristicLab.Algorithms.IteratedSymbolicExpressionConstruction/3.3/Policies/SymbolicExpressionConstructionPolicyBase.cs

    r12909 r12922  
    4646
    4747    protected SymbolicExpressionConstructionPolicyBase() {
     48
    4849    }
    4950
     
    106107        // and add child node to parent
    107108        var childNode = alts[selectedIdx].CreateTreeNode();
    108         if (childNode.HasLocalParameters) childNode.ResetLocalParameters(Random);
     109        if (childNode.HasLocalParameters) {
     110          throw new NotSupportedException("Symbols with parameters are not supported by construction policies for symbolic expressions. Try to reformulate the problem so that only discrete actions are necessary");
     111          // childNode.ResetLocalParameters(Random);
     112        }
    109113
    110114        Contract.Assert(parent.SubtreeCount == childIdx);
     
    113117
    114118        // push new slots
    115         for (int chIdx = childNode.Symbol.MinimumArity - 1; chIdx >= 0; chIdx--) {
     119        for (int chIdx = g.GetMinimumSubtreeCount(childNode.Symbol) - 1; chIdx >= 0; chIdx--) {
    116120          int minForChild = g.GetAllowedChildSymbols(childNode.Symbol, chIdx).Min(a => g.GetMinimumExpressionLength(a)); // min length of all possible alts for the slot
    117121          openSlots.Push(new Slot() { parent = childNode, childIdx = chIdx, minSize = minForChild });
Note: See TracChangeset for help on using the changeset viewer.