- Timestamp:
- 01/16/12 17:02:55 (13 years ago)
- Location:
- branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionFifteen.cs
r7328 r7336 40 40 inputVariables = new List<string>() { "X", "Y" }; 41 41 trainingPartition = new IntRange(0, 20); 42 testPartition = new IntRange(2 0, 120);42 testPartition = new IntRange(2500, 2600); 43 43 } 44 44 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionSixteen.cs
r7328 r7336 40 40 inputVariables = new List<string>() { "X", "Y" }; 41 41 trainingPartition = new IntRange(0, 20); 42 testPartition = new IntRange(2 0, 120);42 testPartition = new IntRange(2500, 2600); 43 43 } 44 44 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionThirteen.cs
r7328 r7336 40 40 inputVariables = new List<string>() { "X", "Y" }; 41 41 trainingPartition = new IntRange(0, 20); 42 testPartition = new IntRange(2 0, 120);42 testPartition = new IntRange(2500, 2600); 43 43 } 44 44 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionTwelve.cs
r7328 r7336 40 40 inputVariables = new List<string>() { "X", "Y" }; 41 41 trainingPartition = new IntRange(0, 20); 42 testPartition = new IntRange(2 0, 120);42 testPartition = new IntRange(2500, 2600); 43 43 } 44 44 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionEight.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(0, 4); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionEleven.cs
r7127 r7336 37 37 targetVariable = "Z"; 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 trainingPartition = new IntRange(0, 250);40 testPartition = new IntRange( 250, 500);39 trainingPartition = new IntRange(0, 100); 40 testPartition = new IntRange(500, 1000); 41 41 } 42 42 … … 55 55 List<List<double>> dataList = new List<List<double>>(); 56 56 DoubleRange range = new DoubleRange(0, 1); 57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 59 59 60 60 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionFive.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(-1, 1); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionFour.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(-1, 1); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionNine.cs
r7127 r7336 37 37 targetVariable = "Z"; 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 trainingPartition = new IntRange(0, 250);40 testPartition = new IntRange( 250, 500);39 trainingPartition = new IntRange(0, 100); 40 testPartition = new IntRange(500, 1000); 41 41 } 42 42 … … 55 55 List<List<double>> dataList = new List<List<double>>(); 56 56 DoubleRange range = new DoubleRange(0, 1); 57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 59 59 60 60 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionOne.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(-1, 1); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionSeven.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(0, 2); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionSix.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(1, -1); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionTen.cs
r7127 r7336 37 37 targetVariable = "Z"; 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 trainingPartition = new IntRange(0, 250);40 testPartition = new IntRange( 250, 500);39 trainingPartition = new IntRange(0, 100); 40 testPartition = new IntRange(500, 1000); 41 41 } 42 42 … … 55 55 List<List<double>> dataList = new List<List<double>>(); 56 56 DoubleRange range = new DoubleRange(0, 1); 57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 59 59 60 60 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionThree.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(-1, 1); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionTwelve.cs
r7127 r7336 37 37 targetVariable = "Z"; 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 trainingPartition = new IntRange(0, 250);40 testPartition = new IntRange( 250, 500);39 trainingPartition = new IntRange(0, 100); 40 testPartition = new IntRange(500, 1000); 41 41 } 42 42 … … 55 55 List<List<double>> dataList = new List<List<double>>(); 56 56 DoubleRange range = new DoubleRange(0, 1); 57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, range)); 59 59 60 60 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionTwo.cs
r7127 r7336 37 37 targetVariable = "Y"; 38 38 inputVariables = new List<string>() { "X" }; 39 trainingPartition = new IntRange(0, 2 50);40 testPartition = new IntRange(250, 500);39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(250, 350); 41 41 } 42 42 … … 54 54 List<List<double>> dataList = new List<List<double>>(); 55 55 DoubleRange range = new DoubleRange(-1, 1); 56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues( testPartition.End, range));56 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, range)); 57 57 58 58 return dataList; -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/KotanchekFunction.cs
r7127 r7336 38 38 inputVariables = new List<string>() { "X1", "X2" }; 39 39 trainingPartition = new IntRange(0, 100); 40 testPartition = new IntRange(100 , 2125);40 testPartition = new IntRange(1000, 3025); 41 41 } 42 42 … … 55 55 List<List<double>> dataList = new List<List<double>>(); 56 56 DoubleRange trainingRange = new DoubleRange(0.3, 4); 57 for (int i = 0; i < InputVariable.Count; i++) {58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(TrainingPartition.End, trainingRange));59 }60 57 61 58 List<double> oneVariableTestData = RegressionBenchmark.GenerateSteps(new DoubleRange(-0.2, 4.2), 0.1); … … 63 60 testData = RegressionBenchmark.GenerateAllCombinationsOfValuesInLists(testData); 64 61 for (int i = 0; i < InputVariable.Count; i++) { 62 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, trainingRange)); 65 63 dataList[i].AddRange(testData[i]); 66 64 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/RationalPolynomialThreeDimensional.cs
r7127 r7336 38 38 inputVariables = new List<string>() { "X1", "X2", "X3" }; 39 39 trainingPartition = new IntRange(0, 300); 40 testPartition = new IntRange( 300, 3000);40 testPartition = new IntRange(1000, 3700); 41 41 } 42 42 … … 55 55 protected override List<List<double>> GenerateInput() { 56 56 List<List<double>> dataList = new List<List<double>>(); 57 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(300, new DoubleRange(0.05, 2))); 58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(300, new DoubleRange(1, 2))); 59 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(300, new DoubleRange(0.05, 2))); 57 int amountOfPoints = 1000; 58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(amountOfPoints, new DoubleRange(0.05, 2))); 59 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(amountOfPoints, new DoubleRange(1, 2))); 60 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(amountOfPoints, new DoubleRange(0.05, 2))); 60 61 61 62 List<List<double>> testData = new List<List<double>>() { -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/RationalPolynomialTwoDimensional.cs
r7127 r7336 38 38 inputVariables = new List<string>() { "X1", "X2" }; 39 39 trainingPartition = new IntRange(0, 50); 40 testPartition = new IntRange( 50, 1207);40 testPartition = new IntRange(1000, 2157); 41 41 } 42 42 … … 55 55 List<List<double>> dataList = new List<List<double>>(); 56 56 DoubleRange trainingRange = new DoubleRange(0.05, 6.05); 57 for (int i = 0; i < InputVariable.Count; i++) {58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(TrainingPartition.End, trainingRange));59 }60 57 61 58 List<double> oneVariableTestData = RegressionBenchmark.GenerateSteps(new DoubleRange(-0.25, 6.35), 0.2); … … 64 61 testData = RegressionBenchmark.GenerateAllCombinationsOfValuesInLists(testData); 65 62 for (int i = 0; i < InputVariable.Count; i++) { 63 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(1000, trainingRange)); 66 64 dataList[i].AddRange(testData[i]); 67 65 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/SineCosineFunction.cs
r7127 r7336 38 38 inputVariables = new List<string>() { "X1", "X2" }; 39 39 trainingPartition = new IntRange(0, 30); 40 testPartition = new IntRange( 30, 991);40 testPartition = new IntRange(500, 1461); 41 41 } 42 42 … … 55 55 List<List<double>> dataList = new List<List<double>>(); 56 56 DoubleRange trainingRange = new DoubleRange(0.1, 5.9); 57 for (int i = 0; i < InputVariable.Count; i++) {58 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(30, trainingRange));59 }60 57 61 58 List<double> oneVariableTestData = RegressionBenchmark.GenerateSteps(new DoubleRange(-0.05, 6.05), 0.02); … … 64 61 65 62 for (int i = 0; i < InputVariable.Count; i++) { 63 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(500, trainingRange)); 66 64 dataList[i].AddRange(testData[i]); 67 65 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionGenerator/RegressionBenchmark.cs
r7127 r7336 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using System.Linq; … … 62 63 63 64 public static List<double> GenerateSteps(DoubleRange range, double stepWidth) { 64 return Enumerable.Range(0, (int) ((range.End - range.Start) / stepWidth) + 1)65 return Enumerable.Range(0, (int)Math.Round(((range.End - range.Start) / stepWidth) + 1)) 65 66 .Select(i => (range.Start + i * stepWidth)) 66 67 .ToList<double>();
Note: See TracChangeset
for help on using the changeset viewer.