Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/12 10:55:26 (12 years ago)
Author:
sforsten
Message:

#1784:

  • added Problem.Instances.Classification project
  • added classification problem instances
  • added a class Transformer to Problem.Instances
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ArtificialRegressionDataDescriptor.cs

    r7664 r7682  
    2020#endregion
    2121
    22 
    2322using System.Collections.Generic;
    2423namespace HeuristicLab.Problems.Instances.Regression {
     
    2827
    2928    protected abstract string TargetVariable { get; }
    30     protected abstract IEnumerable<string> InputVariables { get; }
    31     protected abstract IEnumerable<string> AllowedInputVariables { get; }
     29    protected abstract string[] InputVariables { get; }
     30    protected abstract string[] AllowedInputVariables { get; }
    3231    protected abstract int TrainingPartitionStart { get; }
    3332    protected abstract int TrainingPartitionEnd { get; }
     
    4241      regData.AllowedInputVariables = this.AllowedInputVariables;
    4342      regData.TargetVariable = this.TargetVariable;
    44       regData.Values = this.GenerateValues();
     43      regData.Values = Transformer.Transformation(this.GenerateValues());
    4544      regData.TrainingPartitionStart = this.TrainingPartitionStart;
    4645      regData.TrainingPartitionEnd = this.TrainingPartitionEnd;
     
    5049    }
    5150
    52     protected abstract double[,] GenerateValues();
     51    protected abstract List<List<double>> GenerateValues();
    5352  }
    5453}
Note: See TracChangeset for help on using the changeset viewer.