Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/17 22:00:52 (7 years ago)
Author:
gkronber
Message:

#2796 worked on MCTS symb reg

Location:
branches/MCTS-SymbReg-2796
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/MCTS-SymbReg-2796

    • Property svn:ignore set to
      TestResults
  • branches/MCTS-SymbReg-2796/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/Automaton.cs

    r14185 r15403  
    9696    }
    9797
    98     // reverse notation ops
    99     // Expr -> c 0 Term { '+' Term } '+' '*' c '+' 'exit'
     98    // reverse notation
     99    // Expr -> 0 Term { '+' Term } '+' 'exit'
    100100    // Term -> c Fact { '*' Fact } '*'
    101101    // Fact -> VarFact | ExpFact | LogFact | InvFact
     
    120120      actionStrings = new List<string>[nStates, nStates];
    121121
    122       // Expr -> c 0 Term { '+' Term } '+' '*' c '+' 'exit'
     122      // Expr -> 0 Term { '+' Term } '+' 'exit'
    123123      AddTransition(StateExpr, StateTermStart, () => {
    124124        codeGenerator.Reset();
    125         codeGenerator.Emit1(OpCodes.LoadParamN);
    126125        codeGenerator.Emit1(OpCodes.LoadConst0);
    127126        constraintHandler.Reset();
    128       }, "c 0, Reset");
     127      }, "0, Reset");
    129128      AddTransition(StateTermEnd, StateExprEnd, () => {
    130129        codeGenerator.Emit1(OpCodes.Add);
    131         codeGenerator.Emit1(OpCodes.Mul);
    132         codeGenerator.Emit1(OpCodes.LoadParamN);
    133         codeGenerator.Emit1(OpCodes.Add);
    134130        codeGenerator.Emit1(OpCodes.Exit);
    135       }, "+*c+ exit");
     131      }, "+ exit");
    136132      if (allowMultipleTerms)
    137133        AddTransition(StateTermEnd, StateTermStart, () => {
     
    353349    private readonly int[] followStatesBuf = new int[1000];
    354350    public void FollowStates(int state, out int[] buf, out int nElements) {
    355       // for loop instead of where iterator
    356351      var fs = followStates[state];
    357352      int j = 0;
Note: See TracChangeset for help on using the changeset viewer.