Changeset 7759 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ArtificialRegressionDataDescriptor.cs
- Timestamp:
- 04/24/12 16:37:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ArtificialRegressionDataDescriptor.cs
r7682 r7759 21 21 22 22 using System.Collections.Generic; 23 using HeuristicLab.Problems.DataAnalysis; 24 23 25 namespace HeuristicLab.Problems.Instances.Regression { 24 26 public abstract class ArtificialRegressionDataDescriptor : IDataDescriptor { … … 34 36 protected abstract int TestPartitionEnd { get; } 35 37 36 public RegressionData GenerateRegressionData() { 37 RegressionData regData = new RegressionData(); 38 public RegressionProblemData GenerateRegressionData() { 39 Dataset dataset = new Dataset(InputVariables, this.GenerateValues()); 40 41 RegressionProblemData regData = new RegressionProblemData(dataset, AllowedInputVariables, TargetVariable); 38 42 regData.Name = this.Name; 39 43 regData.Description = this.Description; 40 regData.InputVariables = this.InputVariables; 41 regData.AllowedInputVariables = this.AllowedInputVariables; 42 regData.TargetVariable = this.TargetVariable; 43 regData.Values = Transformer.Transformation(this.GenerateValues()); 44 regData.TrainingPartitionStart = this.TrainingPartitionStart; 45 regData.TrainingPartitionEnd = this.TrainingPartitionEnd; 46 regData.TestPartitionStart = this.TestPartitionStart; 47 regData.TestPartitionEnd = this.TestPartitionEnd; 44 regData.TrainingPartition.Start = this.TrainingPartitionStart; 45 regData.TrainingPartition.End = this.TrainingPartitionEnd; 46 regData.TestPartition.Start = this.TestPartitionStart; 47 regData.TestPartition.End = this.TestPartitionEnd; 48 48 return regData; 49 49 }
Note: See TracChangeset
for help on using the changeset viewer.