Changeset 7095 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionEight.cs
- Timestamp:
- 11/29/11 14:58:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionEight.cs
r7044 r7095 28 28 29 29 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))"; 31 31 Description = "Paper: Accuracy in Symbolic Regression" + Environment.NewLine 32 32 + "Authors: Michael F. Korns" + Environment.NewLine 33 + "Function: y = 6.87 + (11 * cos(7.23 * X0 * X3 * X4))" + Environment.NewLine33 + "Function: y = 6.87 + (11 * sqrt(7.23 * X0 * X3 * X4))" + Environment.NewLine 34 34 + "Real Numbers: 3.45, -.982, 100.389, and all other real constants" + Environment.NewLine 35 35 + "Row Features: x1, x2, x9, and all other features" + Environment.NewLine … … 39 39 + "We test each of the test cases on matrices of 10000 rows by 1 to 5 columns with no noise. " 40 40 + "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!"; 42 43 targetVariable = "Y"; 43 inputVariables = new List<string>() { "X0", "X 3", "X4" };44 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 45 trainingPartition = new IntRange(0, 5000); 45 46 testPartition = new IntRange(5001, 10000); … … 51 52 for (int i = 0; i < data[0].Count; i++) { 52 53 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))); 56 57 } 57 58 return results; … … 60 61 protected override List<List<double>> GenerateInput() { 61 62 List<List<double>> dataList = new List<List<double>>(); 62 DoubleRange range = new DoubleRange( -50, 50);63 DoubleRange range = new DoubleRange(0, 50); 63 64 for (int i = 0; i < inputVariables.Count; i++) { 64 65 dataList.Add(RegressionBenchmark.GenerateUniformDistributedValues(testPartition.End, range));
Note: See TracChangeset
for help on using the changeset viewer.