Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/12 16:37:40 (13 years ago)
Author:
sforsten
Message:

#1784:

  • deleted ClassificationData and RegressionData. RegressionProblemData and ClassificationProblemData are used instead
  • deleted not needed Transformer
  • ValueGenerator is now a static class and yield return is used return IEnumerable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Classification/3.4/ArtificialClassificationDataDescriptor.cs

    r7685 r7759  
    2020#endregion
    2121
     22using System.Collections.Generic;
     23using HeuristicLab.Problems.DataAnalysis;
    2224
    23 using System.Collections.Generic;
    2425namespace HeuristicLab.Problems.Instances.Classification {
    2526  public abstract class ArtificialClassificationDataDescriptor : IDataDescriptor {
     
    3536    protected abstract int TestPartitionEnd { get; }
    3637
    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);
    3942      claData.Name = this.Name;
    4043      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;
    4948      return claData;
    5049    }
Note: See TracChangeset for help on using the changeset viewer.