Changeset 7405 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Other/SpatialCoevolution.cs
- Timestamp:
- 01/24/12 16:23:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Other/SpatialCoevolution.cs
r7127 r7405 40 40 targetVariable = "F"; 41 41 inputVariables = new List<string>() { "X", "Y" }; 42 trainingPartition = new IntRange(0, 338);43 testPartition = new IntRange( 338, 676);42 trainingPartition = new IntRange(0, 676); 43 testPartition = new IntRange(676, 976); 44 44 } 45 45 … … 58 58 List<List<double>> dataList = new List<List<double>>(); 59 59 60 List<double> oneVariableTestData = RegressionBenchmark.GenerateSteps(new DoubleRange(-5, 5), 0.4); 60 DoubleRange range = new DoubleRange(-5, 5); 61 62 List<double> oneVariableTestData = RegressionBenchmark.GenerateSteps(range, 0.4); 61 63 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 62 dataList = RegressionBenchmark.GenerateAllCombinationsOfValuesInLists(testData); 64 testData = RegressionBenchmark.GenerateAllCombinationsOfValuesInLists(testData); 65 66 for (int i = 0; i < inputVariables.Count; i++) { 67 dataList.Add(testData[i]); 68 dataList[i].AddRange(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 69 } 63 70 64 71 return dataList;
Note: See TracChangeset
for help on using the changeset viewer.