Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/12 14:13:39 (12 years ago)
Author:
gkronber
Message:

#1979: cross-checked all regression problem instances with the GP benchmarks paper and adapted where I thought necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Nguyen/NguyenFunctionTwo.cs

    r8825 r9007  
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 20; } }
    45     protected override int TestPartitionStart { get { return 250; } }
    46     protected override int TestPartitionEnd { get { return 350; } }
     45    protected override int TestPartitionStart { get { return 20; } }
     46    protected override int TestPartitionEnd { get { return 520; } }
    4747
    4848    protected override List<List<double>> GenerateValues() {
    4949      List<List<double>> data = new List<List<double>>();
    50       data.Add(ValueGenerator.GenerateUniformDistributedValues(500, -1, 1).ToList());
     50      data.Add(ValueGenerator.GenerateUniformDistributedValues(520, -1, 1).ToList());
    5151
    5252      double x;
     
    5454      for (int i = 0; i < data[0].Count; i++) {
    5555        x = data[0][i];
    56         results.Add(Math.Pow(x, 4) + Math.Pow(x, 3) + Math.Pow(x, 2) + x);
     56        results.Add(Math.Pow(x, 4) + Math.Pow(x, 3) + x*x + x);
    5757      }
    5858      data.Add(results);
Note: See TracChangeset for help on using the changeset viewer.