Changeset 7095 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionTen.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/KornFunctionTen.cs
r7044 r7095 41 41 + "target expressions are limited to one basis function whose maximum depth is three grammar nodes.\""; 42 42 targetVariable = "Y"; 43 inputVariables = new List<string>() { "X 1", "X2", "X3", "X4" };43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 45 testPartition = new IntRange(5001, 10000); … … 50 50 List<double> results = new List<double>(); 51 51 for (int i = 0; i < data[0].Count; i++) { 52 x1 = data[ 0][i];53 x2 = data[ 1][i];54 x3 = data[ 2][i];55 x4 = data[ 3][i];52 x1 = data[1][i]; 53 x2 = data[2][i]; 54 x3 = data[3][i]; 55 x4 = data[4][i]; 56 56 results.Add(0.81 + (24.3 * (((2.0 * x1) + (3.0 * Math.Pow(x2, 2))) / ((4.0 * Math.Pow(x3, 3)) + (5.0 * Math.Pow(x4, 4)))))); 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.