Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/29/11 14:58:06 (12 years ago)
Author:
sforsten
Message:

#1669: Input variables of Korn functions have been adjusted according to the description.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionEight.cs

    r7044 r7095  
    2828
    2929    public KornFunctionEight() {
    30       Name = "Korn 8 y = 6.87 + (11 * cos(7.23 * X0 * X3 * X4))";
     30      Name = "Korn 8 y = 6.87 + (11 * sqrt(7.23 * X0 * X3 * X4))";
    3131      Description = "Paper: Accuracy in Symbolic Regression" + Environment.NewLine
    3232        + "Authors: Michael F. Korns" + Environment.NewLine
    33         + "Function: y = 6.87 + (11 * cos(7.23 * X0 * X3 * X4))" + Environment.NewLine
     33        + "Function: y = 6.87 + (11 * sqrt(7.23 * X0 * X3 * X4))" + Environment.NewLine
    3434        + "Real Numbers: 3.45, -.982, 100.389, and all other real constants" + Environment.NewLine
    3535        + "Row Features: x1, x2, x9, and all other features" + Environment.NewLine
     
    3939        + "We test each of the test cases on matrices of 10000 rows by 1 to 5 columns with no noise. "
    4040        + "For each test a training matrix is filled with random numbers between -50 and +50. The test case "
    41         + "target expressions are limited to one basis function whose maximum depth is three grammar nodes.\"";
     41        + "target expressions are limited to one basis function whose maximum depth is three grammar nodes.\"" + Environment.NewLine + Environment.NewLine
     42        + "Note: Because of the square root only non-negatic values are created for the input variables!";
    4243      targetVariable = "Y";
    43       inputVariables = new List<string>() { "X0", "X3", "X4" };
     44      inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" };
    4445      trainingPartition = new IntRange(0, 5000);
    4546      testPartition = new IntRange(5001, 10000);
     
    5152      for (int i = 0; i < data[0].Count; i++) {
    5253        x0 = data[0][i];
    53         x3 = data[1][i];
    54         x4 = data[2][i];
    55         results.Add(6.87 + (11 * Math.Cos(7.23 * x0 * x3 * x4)));
     54        x3 = data[3][i];
     55        x4 = data[4][i];
     56        results.Add(6.87 + (11 * Math.Sqrt(7.23 * x0 * x3 * x4)));
    5657      }
    5758      return results;
     
    6061    protected override List<List<double>> GenerateInput() {
    6162      List<List<double>> dataList = new List<List<double>>();
    62       DoubleRange range = new DoubleRange(-50, 50);
     63      DoubleRange range = new DoubleRange(0, 50);
    6364      for (int i = 0; i < inputVariables.Count; i++) {
    6465        dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(testPartition.End, range));
Note: See TracChangeset for help on using the changeset viewer.