Free cookie consent management tool by TermsFeed Policy Generator

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

#1784:

  • added Problem.Instances.Classification project
  • added classification problem instances
  • added a class Transformer to Problem.Instances
Location:
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Various
Files:
3 edited

Legend:

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

    r7666 r7682  
    3636    }
    3737    protected override string TargetVariable { get { return "Y"; } }
    38     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "Y" }; } }
    39     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10" }; } }
     38    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "Y" }; } }
     39    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10" }; } }
    4040    protected override int TrainingPartitionStart { get { return 0; } }
    4141    protected override int TrainingPartitionEnd { get { return 5001; } }
     
    4545    protected static FastRandom rand = new FastRandom();
    4646
    47     protected override double[,] GenerateValues() {
     47    protected override List<List<double>> GenerateValues() {
    4848      List<List<double>> data = new List<List<double>>();
    4949      List<int> values = new List<int>() { -1, 1 };
     
    7676      data.Add(results);
    7777
    78       return ValueGenerator.Transformation(data);
     78      return data;
    7979    }
    8080
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Various/PolyTen.cs

    r7666 r7682  
    3939    }
    4040    protected override string TargetVariable { get { return "Y"; } }
    41     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "Y" }; } }
    42     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10" }; } }
     41    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "Y" }; } }
     42    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10" }; } }
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 250; } }
     
    4646    protected override int TestPartitionEnd { get { return 500; } }
    4747
    48     protected override double[,] GenerateValues() {
     48    protected override List<List<double>> GenerateValues() {
    4949      List<List<double>> data = new List<List<double>>();
    5050      for (int i = 0; i < AllowedInputVariables.Count(); i++) {
     
    6969      data.Add(results);
    7070
    71       return ValueGenerator.Transformation(data);
     71      return data;
    7272    }
    7373  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Various/SpatialCoevolution.cs

    r7666 r7682  
    4242    }
    4343    protected override string TargetVariable { get { return "F"; } }
    44     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X", "Y", "F" }; } }
    45     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X", "Y" }; } }
     44    protected override string[] InputVariables { get { return new string[] { "X", "Y", "F" }; } }
     45    protected override string[] AllowedInputVariables { get { return new string[] { "X", "Y" }; } }
    4646    protected override int TrainingPartitionStart { get { return 0; } }
    4747    protected override int TrainingPartitionEnd { get { return 250; } }
     
    4949    protected override int TestPartitionEnd { get { return 500; } }
    5050
    51     protected override double[,] GenerateValues() {
     51    protected override List<List<double>> GenerateValues() {
    5252      List<List<double>> data = new List<List<double>>();
    5353
     
    7070      data.Add(results);
    7171
    72       return ValueGenerator.Transformation(data);
     72      return data;
    7373    }
    7474  }
Note: See TracChangeset for help on using the changeset viewer.