Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/08/15 10:09:47 (9 years ago)
Author:
gkronber
Message:

#2283: worked on Q-Learning for poly10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Problems.GrammaticalOptimization/Problems/SymbolicRegressionPoly10Problem.cs

    r12290 r12294  
    163163      //   .Concat(new Feature[] { new Feature(CanonicalRepresentation(phrase), 1.0) });
    164164
    165       var partialInterpreter = new PartialExpressionInterpreter();
    166       var vars = new double[] { 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, };
    167       var s = partialInterpreter.Interpret(phrase, vars);
    168       //if (s.Any())
    169       //  return new Feature[] { new Feature(s.Pop().ToString(), 1.0), };
    170       //else
    171       //  return new Feature[] { new Feature("$", 1.0), };
    172       return new Feature[] { new Feature(string.Join(",", s), 1.0) };
     165      //return new Feature[] { new Feature(phrase, 1.0), };
     166
     167       var partialInterpreter = new PartialExpressionInterpreter();
     168       var vars = new double[] { 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, };
     169       var s = partialInterpreter.Interpret(phrase, vars);
     170       //if (s.Any())
     171       //  return new Feature[] { new Feature(s.Pop().ToString(), 1.0), };
     172       //else
     173       //  return new Feature[] { new Feature("$", 1.0), };
     174       return new Feature[] { new Feature(string.Join(",", s), 1.0) };
    173175    }
    174176
Note: See TracChangeset for help on using the changeset viewer.