Changeset 9007 for trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Nguyen/NguyenFunctionTwo.cs
- Timestamp:
- 12/06/12 14:13:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Nguyen/NguyenFunctionTwo.cs
r8825 r9007 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 20; } } 45 protected override int TestPartitionStart { get { return 2 50; } }46 protected override int TestPartitionEnd { get { return 350; } }45 protected override int TestPartitionStart { get { return 20; } } 46 protected override int TestPartitionEnd { get { return 520; } } 47 47 48 48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 data.Add(ValueGenerator.GenerateUniformDistributedValues(5 00, -1, 1).ToList());50 data.Add(ValueGenerator.GenerateUniformDistributedValues(520, -1, 1).ToList()); 51 51 52 52 double x; … … 54 54 for (int i = 0; i < data[0].Count; i++) { 55 55 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); 57 57 } 58 58 data.Add(results);
Note: See TracChangeset
for help on using the changeset viewer.