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