Free cookie consent management tool by TermsFeed Policy Generator

Changes between Version 2 and Version 3 of Ticket #2704, comment 15


Ignore:
Timestamp:
04/20/17 17:28:22 (8 years ago)
Author:
gkronber
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2704, comment 15

    v2 v3  
    2222    var experiment = new Experiment();
    2323    vars["experiment"] = experiment;
    24     for(int i=0;i<100;i++) {
    25       var p = ExpressionGenerator.NonlinearExpression(urand, variables, useLog: true, useExp: true);
     24    for(int i=0;i<20;i++) {
     25      var p = ExpressionGenerator.RationalExpression(urand, variables, useLog: true, useExp: true);
    2626    // Console.WriteLine(p.PrintDot());
    27     // Console.WriteLine(p.PrintInfix());
     27    Console.WriteLine(p.PrintInfix());
    2828   
    2929      var infixParser = new   InfixExpressionParser();
     
    5555      var problemData = new RegressionProblemData(ds, variables.Select(v => v.Name), "y");
    5656      vars["problemData"] = problemData;
    57       // var osgp = (IAlgorithm) vars["OSGPC"];
     57      // var osgp = (IAlgorithm) vars["OSGP"];
    5858      // var regProblem = (SymbolicRegressionSingleObjectiveProblem)osgp.Problem;                                     
    5959      // regProblem.Name =  formatter.Format(t);
    60       // osgp.Name = "OSGPC - " + regProblem.Name;
     60      // osgp.Name = "OSGP - " + regProblem.Name;
    6161      // regProblem.ProblemData = problemData;
    6262      //
     
    6868    }
    6969  }
     70}
    7071}}}