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/Keijzer/KeijzerFunctionThirteen.cs

    r7664 r7682  
    4141    }
    4242    protected override string TargetVariable { get { return "F"; } }
    43     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X", "Y", "F" }; } }
    44     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X", "Y" }; } }
     43    protected override string[] InputVariables { get { return new string[] { "X", "Y", "F" }; } }
     44    protected override string[] AllowedInputVariables { get { return new string[] { "X", "Y" }; } }
    4545    protected override int TrainingPartitionStart { get { return 0; } }
    4646    protected override int TrainingPartitionEnd { get { return 20; } }
     
    4848    protected override int TestPartitionEnd { get { return 5000; } }
    4949
    50     protected override double[,] GenerateValues() {
     50    protected override List<List<double>> GenerateValues() {
    5151      List<List<double>> data = new List<List<double>>();
    5252      for (int i = 0; i < AllowedInputVariables.Count(); i++) {
     
    6363      data.Add(results);
    6464
    65       return ValueGenerator.Transformation(data);
     65      return data;
    6666    }
    6767  }
Note: See TracChangeset for help on using the changeset viewer.