Changeset 6991 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/RationalPolynomial.cs
- Timestamp:
- 11/14/11 17:08:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/RationalPolynomial.cs
r6968 r6991 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Data;28 27 29 28 namespace HeuristicLab.Problems.DataAnalysis.Benchmarks { … … 32 31 33 32 public RationalPolynomial() { 34 Name = "Rational polynomial (3d)"; 35 TargetVariable = "y"; 36 Inputvariables = new Dictionary<string, IntRange>() { 37 {"x1", new IntRange(0, 2)}, 38 {"x2", new IntRange(1, 2)}, 39 {"x3", new IntRange(1, 2)} 40 }; 41 AmountOfPoints = 4000; 42 TrainingPartition = new IntRange(0, 2667); 43 TestPartition = new IntRange(TrainingPartition.End, AmountOfPoints); 33 //Name = "Rational polynomial (3d)"; 34 //TargetVariable = "y"; 35 36 //var inputVariables = new Dictionary<string, RandomDistribution>() { 37 // {"x1", new UniformalDistribution(0, 2)}, 38 // {"x2", new UniformalDistribution(1, 2)}, 39 // {"x3", new UniformalDistribution(1, 2)} 40 //}; 41 42 //TestData = new DatasetDefinition(2667, inputVariables); 43 //TrainingData = new DatasetDefinition(1333, inputVariables); 44 44 } 45 45 … … 54 54 #endregion 55 55 56 protected override double CalculateFunction(Dictionary<string, IList<double>> data , List<string> vars) {56 protected override double CalculateFunction(Dictionary<string, IList<double>> data) { 57 57 double x1 = data[vars.ElementAt(0)].Last(); 58 58 double x2 = data[vars.ElementAt(1)].Last(); … … 60 60 return (30 * (x1 - 1) * (x3 - 1)) / ((x1 - 10) * Math.Pow(x2, 2)); 61 61 } 62 63 public override List<string> InputVariable { 64 get { throw new NotImplementedException(); } 65 } 66 67 public override string TargetVariable { 68 get { throw new NotImplementedException(); } 69 } 70 71 public override Data.IntRange TrainingPartition { 72 get { throw new NotImplementedException(); } 73 } 74 75 public override Data.IntRange TestPartition { 76 get { throw new NotImplementedException(); } 77 } 78 79 protected override Dictionary<string, IList<double>> GenerateInput(Dictionary<string, IList<double>> data) { 80 throw new NotImplementedException(); 81 } 62 82 } 63 83 }
Note: See TracChangeset
for help on using the changeset viewer.