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/Vladislavleva
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/KotanchekFunction.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", "Y" }; } }
    42     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2" }; } }
     41    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "Y" }; } }
     42    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2" }; } }
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 100; } }
     
    4646    protected override int TestPartitionEnd { get { return 3025; } }
    4747
    48     protected override double[,] GenerateValues() {
     48    protected override List<List<double>> GenerateValues() {
    4949      List<List<double>> data = new List<List<double>>();
    5050
     
    6666      data.Add(results);
    6767
    68       return ValueGenerator.Transformation(data);
     68      return data;
    6969    }
    7070  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/RationalPolynomialThreeDimensional.cs

    r7664 r7682  
    3939    }
    4040    protected override string TargetVariable { get { return "Y"; } }
    41     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X1", "X2", "X3", "Y" }; } }
    42     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2", "X3" }; } }
     41    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "X3", "Y" }; } }
     42    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2", "X3" }; } }
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 300; } }
     
    4646    protected override int TestPartitionEnd { get { return 3700; } }
    4747
    48     protected override double[,] GenerateValues() {
     48    protected override List<List<double>> GenerateValues() {
    4949      List<List<double>> data = new List<List<double>>();
    5050
     
    7676      data.Add(results);
    7777
    78       return ValueGenerator.Transformation(data);
     78      return data;
    7979    }
    8080  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/RationalPolynomialTwoDimensional.cs

    r7664 r7682  
    3939    }
    4040    protected override string TargetVariable { get { return "Y"; } }
    41     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X1", "X2", "Y" }; } }
    42     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2" }; } }
     41    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "Y" }; } }
     42    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2" }; } }
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 50; } }
     
    4646    protected override int TestPartitionEnd { get { return 2157; } }
    4747
    48     protected override double[,] GenerateValues() {
     48    protected override List<List<double>> GenerateValues() {
    4949      List<List<double>> data = new List<List<double>>();
    5050
     
    6767      data.Add(results);
    6868
    69       return ValueGenerator.Transformation(data);
     69      return data;
    7070    }
    7171  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/RippleFunction.cs

    r7664 r7682  
    3939    }
    4040    protected override string TargetVariable { get { return "Y"; } }
    41     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X1", "X2", "Y" }; } }
    42     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2" }; } }
     41    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "Y" }; } }
     42    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2" }; } }
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 300; } }
     
    4646    protected override int TestPartitionEnd { get { return 1300; } }
    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++) {
     
    6565      data.Add(results);
    6666
    67       return ValueGenerator.Transformation(data);
     67      return data;
    6868    }
    6969  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/SalutowiczFunctionOneDimensional.cs

    r7664 r7682  
    3838    }
    3939    protected override string TargetVariable { get { return "Y"; } }
    40     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X", "Y" }; } }
    41     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X" }; } }
     40    protected override string[] InputVariables { get { return new string[] { "X", "Y" }; } }
     41    protected override string[] AllowedInputVariables { get { return new string[] { "X" }; } }
    4242    protected override int TrainingPartitionStart { get { return 0; } }
    4343    protected override int TrainingPartitionEnd { get { return 100; } }
     
    4545    protected override int TestPartitionEnd { get { return 321; } }
    4646
    47     protected override double[,] GenerateValues() {
     47    protected override List<List<double>> GenerateValues() {
    4848      List<List<double>> data = new List<List<double>>();
    4949      data.Add(ValueGenerator.GenerateSteps(0.05, 10, 0.1));
     
    5858      data.Add(results);
    5959
    60       return ValueGenerator.Transformation(data);
     60      return data;
    6161    }
    6262  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/SalutowiczFunctionTwoDimensional.cs

    r7664 r7682  
    4040    }
    4141    protected override string TargetVariable { get { return "Y"; } }
    42     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X1", "X2", "Y" }; } }
    43     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2" }; } }
     42    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "Y" }; } }
     43    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2" }; } }
    4444    protected override int TrainingPartitionStart { get { return 0; } }
    4545    protected override int TrainingPartitionEnd { get { return 601; } }
     
    4747    protected override int TestPartitionEnd { get { return 3155; } }
    4848
    49     protected override double[,] GenerateValues() {
     49    protected override List<List<double>> GenerateValues() {
    5050      List<List<double>> data = new List<List<double>>();
    5151      List<List<double>> trainingData = new List<List<double>>() {
     
    7676      data.Add(results);
    7777
    78       return ValueGenerator.Transformation(data);
     78      return data;
    7979    }
    8080  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/SineCosineFunction.cs

    r7664 r7682  
    3939    }
    4040    protected override string TargetVariable { get { return "Y"; } }
    41     protected override IEnumerable<string> InputVariables { get { return new List<string>() { "X1", "X2", "Y" }; } }
    42     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2" }; } }
     41    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "Y" }; } }
     42    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2" }; } }
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 30; } }
     
    4646    protected override int TestPartitionEnd { get { return 1461; } }
    4747
    48     protected override double[,] GenerateValues() {
     48    protected override List<List<double>> GenerateValues() {
    4949      List<List<double>> data = new List<List<double>>();
    5050      List<double> oneVariableTestData = ValueGenerator.GenerateSteps(-0.05, 6.05, 0.02);
     
    6666      data.Add(results);
    6767
    68       return ValueGenerator.Transformation(data);
     68      return data;
    6969    }
    7070  }
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/UnwrappedBallFunctionFiveDimensional.cs

    r7664 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", "Y" }; } }
    42     protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>() { "X1", "X2", "X3", "X4", "X5" }; } }
     41    protected override string[] InputVariables { get { return new string[] { "X1", "X2", "X3", "X4", "X5", "Y" }; } }
     42    protected override string[] AllowedInputVariables { get { return new string[] { "X1", "X2", "X3", "X4", "X5" }; } }
    4343    protected override int TrainingPartitionStart { get { return 0; } }
    4444    protected override int TrainingPartitionEnd { get { return 1024; } }
     
    4646    protected override int TestPartitionEnd { get { return 6024; } }
    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++) {
     
    6565      data.Add(results);
    6666
    67       return ValueGenerator.Transformation(data);
     67      return data;
    6868    }
    6969  }
Note: See TracChangeset for help on using the changeset viewer.