Changeset 7682 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression
- Timestamp:
- 04/02/12 10:55:26 (12 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ArtificialRegressionDataDescriptor.cs
r7664 r7682 20 20 #endregion 21 21 22 23 22 using System.Collections.Generic; 24 23 namespace HeuristicLab.Problems.Instances.Regression { … … 28 27 29 28 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; } 32 31 protected abstract int TrainingPartitionStart { get; } 33 32 protected abstract int TrainingPartitionEnd { get; } … … 42 41 regData.AllowedInputVariables = this.AllowedInputVariables; 43 42 regData.TargetVariable = this.TargetVariable; 44 regData.Values = this.GenerateValues();43 regData.Values = Transformer.Transformation(this.GenerateValues()); 45 44 regData.TrainingPartitionStart = this.TrainingPartitionStart; 46 45 regData.TrainingPartitionEnd = this.TrainingPartitionEnd; … … 50 49 } 51 50 52 protected abstract double[,]GenerateValues();51 protected abstract List<List<double>> GenerateValues(); 53 52 } 54 53 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionEight.cs
r7664 r7682 39 39 } 40 40 protected override string TargetVariable { get { return "F"; } } 41 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "F" }; } }42 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X" }; } }41 protected override string[] InputVariables { get { return new string[] { "X", "F" }; } } 42 protected override string[] AllowedInputVariables { get { return new string[] { "X" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 100; } } … … 46 46 protected override int TestPartitionEnd { get { return 1091; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 data.Add(ValueGenerator.GenerateSteps(1, 100, 1)); … … 59 59 data.Add(results); 60 60 61 return ValueGenerator.Transformation(data);61 return data; 62 62 } 63 63 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionFifteen.cs
r7664 r7682 41 41 } 42 42 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" }; } } 45 45 protected override int TrainingPartitionStart { get { return 0; } } 46 46 protected override int TrainingPartitionEnd { get { return 20; } } … … 48 48 protected override int TestPartitionEnd { get { return 5000; } } 49 49 50 protected override double[,]GenerateValues() {50 protected override List<List<double>> GenerateValues() { 51 51 List<List<double>> data = new List<List<double>>(); 52 52 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 63 63 data.Add(results); 64 64 65 return ValueGenerator.Transformation(data);65 return data; 66 66 } 67 67 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionFour.cs
r7664 r7682 38 38 } 39 39 protected override string TargetVariable { get { return "F"; } } 40 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "F" }; } }41 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X" }; } }40 protected override string[] InputVariables { get { return new string[] { "X", "F" }; } } 41 protected override string[] AllowedInputVariables { get { return new string[] { "X" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 21; } } … … 45 45 protected override int TestPartitionEnd { get { return 2022; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateSteps(-1, 1, 0.1)); … … 58 58 data.Add(results); 59 59 60 return ValueGenerator.Transformation(data);60 return data; 61 61 } 62 62 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionSeven.cs
r7664 r7682 39 39 } 40 40 protected override string TargetVariable { get { return "F"; } } 41 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "F" }; } }42 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X" }; } }41 protected override string[] InputVariables { get { return new string[] { "X", "F" }; } } 42 protected override string[] AllowedInputVariables { get { return new string[] { "X" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 50; } } … … 46 46 protected override int TestPartitionEnd { get { return 170; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 data.Add(ValueGenerator.GenerateSteps(1, 50, 1)); … … 59 59 data.Add(results); 60 60 61 return ValueGenerator.Transformation(data);61 return data; 62 62 } 63 63 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionSix.cs
r7664 r7682 38 38 } 39 39 protected override string TargetVariable { get { return "F"; } } 40 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "Y", "Z", "F" }; } }41 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X", "Y", "Z" }; } }40 protected override string[] InputVariables { get { return new string[] { "X", "Y", "Z", "F" }; } } 41 protected override string[] AllowedInputVariables { get { return new string[] { "X", "Y", "Z" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 1000; } } … … 45 45 protected override int TestPartitionEnd { get { return 11000; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, -1, 1)); … … 61 61 data.Add(results); 62 62 63 return ValueGenerator.Transformation(data);63 return data; 64 64 } 65 65 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionSixteen.cs
r7664 r7682 41 41 } 42 42 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" }; } } 45 45 protected override int TrainingPartitionStart { get { return 0; } } 46 46 protected override int TrainingPartitionEnd { get { return 20; } } … … 48 48 protected override int TestPartitionEnd { get { return 5000; } } 49 49 50 protected override double[,]GenerateValues() {50 protected override List<List<double>> GenerateValues() { 51 51 List<List<double>> data = new List<List<double>>(); 52 52 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 63 63 data.Add(results); 64 64 65 return ValueGenerator.Transformation(data);65 return data; 66 66 } 67 67 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionThirteen.cs
r7664 r7682 41 41 } 42 42 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" }; } } 45 45 protected override int TrainingPartitionStart { get { return 0; } } 46 46 protected override int TrainingPartitionEnd { get { return 20; } } … … 48 48 protected override int TestPartitionEnd { get { return 5000; } } 49 49 50 protected override double[,]GenerateValues() {50 protected override List<List<double>> GenerateValues() { 51 51 List<List<double>> data = new List<List<double>>(); 52 52 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 63 63 data.Add(results); 64 64 65 return ValueGenerator.Transformation(data);65 return data; 66 66 } 67 67 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Keijzer/KeijzerFunctionTwelve.cs
r7664 r7682 41 41 } 42 42 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" }; } } 45 45 protected override int TrainingPartitionStart { get { return 0; } } 46 46 protected override int TrainingPartitionEnd { get { return 20; } } … … 48 48 protected override int TestPartitionEnd { get { return 5000; } } 49 49 50 protected override double[,]GenerateValues() {50 protected override List<List<double>> GenerateValues() { 51 51 List<List<double>> data = new List<List<double>>(); 52 52 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 63 63 data.Add(results); 64 64 65 return ValueGenerator.Transformation(data);65 return data; 66 66 } 67 67 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionEight.cs
r7664 r7682 45 45 } 46 46 protected override string TargetVariable { get { return "Y"; } } 47 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }48 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }47 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 48 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 49 49 protected override int TrainingPartitionStart { get { return 0; } } 50 50 protected override int TrainingPartitionEnd { get { return 5000; } } … … 52 52 protected override int TestPartitionEnd { get { return 10000; } } 53 53 54 protected override double[,]GenerateValues() {54 protected override List<List<double>> GenerateValues() { 55 55 List<List<double>> data = new List<List<double>>(); 56 56 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 68 68 data.Add(results); 69 69 70 return ValueGenerator.Transformation(data);70 return data; 71 71 } 72 72 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionEleven.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 65 65 data.Add(results); 66 66 67 return ValueGenerator.Transformation(data);67 return data; 68 68 } 69 69 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionFive.cs
r7664 r7682 45 45 } 46 46 protected override string TargetVariable { get { return "Y"; } } 47 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }48 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }47 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 48 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 49 49 protected override int TrainingPartitionStart { get { return 0; } } 50 50 protected override int TrainingPartitionEnd { get { return 5000; } } … … 52 52 protected override int TestPartitionEnd { get { return 10000; } } 53 53 54 protected override double[,]GenerateValues() {54 protected override List<List<double>> GenerateValues() { 55 55 List<List<double>> data = new List<List<double>>(); 56 56 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 66 66 data.Add(results); 67 67 68 return ValueGenerator.Transformation(data);68 return data; 69 69 } 70 70 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionFiveteen.cs
r7664 r7682 45 45 } 46 46 protected override string TargetVariable { get { return "Y"; } } 47 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }48 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }47 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 48 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 49 49 protected override int TrainingPartitionStart { get { return 0; } } 50 50 protected override int TrainingPartitionEnd { get { return 5000; } } … … 52 52 protected override int TestPartitionEnd { get { return 10000; } } 53 53 54 protected override double[,]GenerateValues() {54 protected override List<List<double>> GenerateValues() { 55 55 List<List<double>> data = new List<List<double>>(); 56 56 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 69 69 data.Add(results); 70 70 71 return ValueGenerator.Transformation(data);71 return data; 72 72 } 73 73 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionFour.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 65 65 data.Add(results); 66 66 67 return ValueGenerator.Transformation(data);67 return data; 68 68 } 69 69 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionFourteen.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 68 68 data.Add(results); 69 69 70 return ValueGenerator.Transformation(data);70 return data; 71 71 } 72 72 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionNine.cs
r7664 r7682 45 45 } 46 46 protected override string TargetVariable { get { return "Y"; } } 47 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }48 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }47 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 48 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 49 49 protected override int TrainingPartitionStart { get { return 0; } } 50 50 protected override int TrainingPartitionEnd { get { return 5000; } } … … 52 52 protected override int TestPartitionEnd { get { return 10000; } } 53 53 54 protected override double[,]GenerateValues() {54 protected override List<List<double>> GenerateValues() { 55 55 List<List<double>> data = new List<List<double>>(); 56 56 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 69 69 data.Add(results); 70 70 71 return ValueGenerator.Transformation(data);71 return data; 72 72 } 73 73 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionOne.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 65 65 data.Add(results); 66 66 67 return ValueGenerator.Transformation(data);67 return data; 68 68 } 69 69 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionSeven.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 65 65 data.Add(results); 66 66 67 return ValueGenerator.Transformation(data);67 return data; 68 68 } 69 69 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionSix.cs
r7664 r7682 45 45 } 46 46 protected override string TargetVariable { get { return "Y"; } } 47 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }48 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }47 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 48 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 49 49 protected override int TrainingPartitionStart { get { return 0; } } 50 50 protected override int TrainingPartitionEnd { get { return 5000; } } … … 52 52 protected override int TestPartitionEnd { get { return 10000; } } 53 53 54 protected override double[,]GenerateValues() {54 protected override List<List<double>> GenerateValues() { 55 55 List<List<double>> data = new List<List<double>>(); 56 56 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 66 66 data.Add(results); 67 67 68 return ValueGenerator.Transformation(data);68 return data; 69 69 } 70 70 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionTen.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 68 68 data.Add(results); 69 69 70 return ValueGenerator.Transformation(data);70 return data; 71 71 } 72 72 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionThirteen.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 68 68 data.Add(results); 69 69 70 return ValueGenerator.Transformation(data);70 return data; 71 71 } 72 72 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionThree.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 68 68 data.Add(results); 69 69 70 return ValueGenerator.Transformation(data);70 return data; 71 71 } 72 72 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionTwelve.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 66 66 data.Add(results); 67 67 68 return ValueGenerator.Transformation(data);68 return data; 69 69 } 70 70 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Korns/KornsFunctionTwo.cs
r7664 r7682 44 44 } 45 45 protected override string TargetVariable { get { return "Y"; } } 46 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4", "Y" }; } }47 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X0", "X1", "X2", "X3", "X4" }; } }46 protected override string[] InputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4", "Y" }; } } 47 protected override string[] AllowedInputVariables { get { return new string[] { "X0", "X1", "X2", "X3", "X4" }; } } 48 48 protected override int TrainingPartitionStart { get { return 0; } } 49 49 protected override int TrainingPartitionEnd { get { return 5000; } } … … 51 51 protected override int TestPartitionEnd { get { return 10000; } } 52 52 53 protected override double[,]GenerateValues() {53 protected override List<List<double>> GenerateValues() { 54 54 List<List<double>> data = new List<List<double>>(); 55 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 67 67 data.Add(results); 68 68 69 return ValueGenerator.Transformation(data);69 return data; 70 70 } 71 71 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionEight.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, 0, 4)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionEleven.cs
r7664 r7682 38 38 } 39 39 protected override string TargetVariable { get { return "Z"; } } 40 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "Y", "Z" }; } }41 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X", "Y" }; } }40 protected override string[] InputVariables { get { return new string[] { "X", "Y", "Z" }; } } 41 protected override string[] AllowedInputVariables { get { return new string[] { "X", "Y" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 100; } } … … 45 45 protected override int TestPartitionEnd { get { return 1000; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, 0, 1)); … … 59 59 data.Add(results); 60 60 61 return ValueGenerator.Transformation(data);61 return data; 62 62 } 63 63 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionFive.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, -1, 1)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionFour.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, -1, 1)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionNine.cs
r7664 r7682 38 38 } 39 39 protected override string TargetVariable { get { return "Z"; } } 40 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "Y", "Z" }; } }41 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X", "Y" }; } }40 protected override string[] InputVariables { get { return new string[] { "X", "Y", "Z" }; } } 41 protected override string[] AllowedInputVariables { get { return new string[] { "X", "Y" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 100; } } … … 45 45 protected override int TestPartitionEnd { get { return 1000; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, 0, 1)); … … 59 59 data.Add(results); 60 60 61 return ValueGenerator.Transformation(data);61 return data; 62 62 } 63 63 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionOne.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, -1, 1)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionSeven.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, 0, 2)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionSix.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, -1, 1)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionTen.cs
r7664 r7682 38 38 } 39 39 protected override string TargetVariable { get { return "Z"; } } 40 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "Y", "Z" }; } }41 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X", "Y" }; } }40 protected override string[] InputVariables { get { return new string[] { "X", "Y", "Z" }; } } 41 protected override string[] AllowedInputVariables { get { return new string[] { "X", "Y" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 100; } } … … 45 45 protected override int TestPartitionEnd { get { return 1000; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(1000, 0, 1)); … … 59 59 data.Add(results); 60 60 61 return ValueGenerator.Transformation(data);61 return data; 62 62 } 63 63 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionThree.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, -1, 1)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionTwelve.cs
r7664 r7682 38 38 } 39 39 protected override string TargetVariable { get { return "Z"; } } 40 protected override IEnumerable<string> InputVariables { get { return new List<string>(){ "X", "Y", "Z" }; } }41 protected override IEnumerable<string> AllowedInputVariables { get { return new List<string>(){ "X", "Y" }; } }40 protected override string[] InputVariables { get { return new string[] { "X", "Y", "Z" }; } } 41 protected override string[] AllowedInputVariables { get { return new string[] { "X", "Y" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 100; } } … … 45 45 protected override int TestPartitionEnd { get { return 1000; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(1000, 0, 1)); … … 59 59 data.Add(results); 60 60 61 return ValueGenerator.Transformation(data);61 return data; 62 62 } 63 63 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Nguyen/NguyenFunctionTwo.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 20; } } … … 45 45 protected override int TestPartitionEnd { get { return 350; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateUniformDistributedValues(500, -1, 1)); … … 57 57 data.Add(results); 58 58 59 return ValueGenerator.Transformation(data);59 return data; 60 60 } 61 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Properties/AssemblyInfo.cs
r7667 r7682 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.4.0.0")] 57 [assembly: AssemblyFileVersion("3.4.0.766 6")]57 [assembly: AssemblyFileVersion("3.4.0.7667")] -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/RegressionInstanceProvider.cs
r7664 r7682 41 41 regData.Name = path.Substring(pos, path.Length - pos); 42 42 } 43 regData.InputVariables = new List<string>(csvFileParser.VariableNames) ;43 regData.InputVariables = new List<string>(csvFileParser.VariableNames).ToArray(); 44 44 regData.TargetVariable = csvFileParser.VariableNames.Last(); 45 regData.AllowedInputVariables = regData.InputVariables.Where(x => !x.Equals(regData.TargetVariable)) ;45 regData.AllowedInputVariables = regData.InputVariables.Where(x => !x.Equals(regData.TargetVariable)).ToArray(); 46 46 //convert to multidimensional array 47 47 List<IList> values = csvFileParser.Values; -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/TrentMcConaghy/TrentMcConaghyInstanceProvider.cs
r7667 r7682 49 49 50 50 regData.TargetVariable = regData.InputVariables.First(); 51 regData.AllowedInputVariables = regData.InputVariables.Where(x => !x.Equals(regData.TargetVariable)) ;51 regData.AllowedInputVariables = regData.InputVariables.Where(x => !x.Equals(regData.TargetVariable)).ToArray(); 52 52 53 53 return regData; -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ValueGenerator.cs
r7664 r7682 28 28 public class ValueGenerator { 29 29 protected static FastRandom rand = new FastRandom(); 30 31 public static double[,] Transformation(List<List<double>> data) {32 if (!data.All(x => x.Count.Equals(data.First().Count)))33 throw new ArgumentException("Can't create jagged array.");34 double[,] values = new double[data.First().Count, data.Count];35 for (int i = 0; i < values.GetLength(0); i++) {36 for (int j = 0; j < values.GetLength(1); j++) {37 values[i, j] = data[j][i];38 }39 }40 return values;41 }42 30 43 31 public static List<double> GenerateSteps(double start, double end, double stepWidth) { -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Various/BreimanOne.cs
r7666 r7682 36 36 } 37 37 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" }; } } 40 40 protected override int TrainingPartitionStart { get { return 0; } } 41 41 protected override int TrainingPartitionEnd { get { return 5001; } } … … 45 45 protected static FastRandom rand = new FastRandom(); 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 List<int> values = new List<int>() { -1, 1 }; … … 76 76 data.Add(results); 77 77 78 return ValueGenerator.Transformation(data);78 return data; 79 79 } 80 80 -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Various/PolyTen.cs
r7666 r7682 39 39 } 40 40 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" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 250; } } … … 46 46 protected override int TestPartitionEnd { get { return 500; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 69 69 data.Add(results); 70 70 71 return ValueGenerator.Transformation(data);71 return data; 72 72 } 73 73 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Various/SpatialCoevolution.cs
r7666 r7682 42 42 } 43 43 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" }; } } 46 46 protected override int TrainingPartitionStart { get { return 0; } } 47 47 protected override int TrainingPartitionEnd { get { return 250; } } … … 49 49 protected override int TestPartitionEnd { get { return 500; } } 50 50 51 protected override double[,]GenerateValues() {51 protected override List<List<double>> GenerateValues() { 52 52 List<List<double>> data = new List<List<double>>(); 53 53 … … 70 70 data.Add(results); 71 71 72 return ValueGenerator.Transformation(data);72 return data; 73 73 } 74 74 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/KotanchekFunction.cs
r7666 r7682 39 39 } 40 40 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" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 100; } } … … 46 46 protected override int TestPartitionEnd { get { return 3025; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 … … 66 66 data.Add(results); 67 67 68 return ValueGenerator.Transformation(data);68 return data; 69 69 } 70 70 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/RationalPolynomialThreeDimensional.cs
r7664 r7682 39 39 } 40 40 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" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 300; } } … … 46 46 protected override int TestPartitionEnd { get { return 3700; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 … … 76 76 data.Add(results); 77 77 78 return ValueGenerator.Transformation(data);78 return data; 79 79 } 80 80 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/RationalPolynomialTwoDimensional.cs
r7664 r7682 39 39 } 40 40 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" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 50; } } … … 46 46 protected override int TestPartitionEnd { get { return 2157; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 … … 67 67 data.Add(results); 68 68 69 return ValueGenerator.Transformation(data);69 return data; 70 70 } 71 71 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/RippleFunction.cs
r7664 r7682 39 39 } 40 40 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" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 300; } } … … 46 46 protected override int TestPartitionEnd { get { return 1300; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 65 65 data.Add(results); 66 66 67 return ValueGenerator.Transformation(data);67 return data; 68 68 } 69 69 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/SalutowiczFunctionOneDimensional.cs
r7664 r7682 38 38 } 39 39 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" }; } } 42 42 protected override int TrainingPartitionStart { get { return 0; } } 43 43 protected override int TrainingPartitionEnd { get { return 100; } } … … 45 45 protected override int TestPartitionEnd { get { return 321; } } 46 46 47 protected override double[,]GenerateValues() {47 protected override List<List<double>> GenerateValues() { 48 48 List<List<double>> data = new List<List<double>>(); 49 49 data.Add(ValueGenerator.GenerateSteps(0.05, 10, 0.1)); … … 58 58 data.Add(results); 59 59 60 return ValueGenerator.Transformation(data);60 return data; 61 61 } 62 62 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/SalutowiczFunctionTwoDimensional.cs
r7664 r7682 40 40 } 41 41 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" }; } } 44 44 protected override int TrainingPartitionStart { get { return 0; } } 45 45 protected override int TrainingPartitionEnd { get { return 601; } } … … 47 47 protected override int TestPartitionEnd { get { return 3155; } } 48 48 49 protected override double[,]GenerateValues() {49 protected override List<List<double>> GenerateValues() { 50 50 List<List<double>> data = new List<List<double>>(); 51 51 List<List<double>> trainingData = new List<List<double>>() { … … 76 76 data.Add(results); 77 77 78 return ValueGenerator.Transformation(data);78 return data; 79 79 } 80 80 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/SineCosineFunction.cs
r7664 r7682 39 39 } 40 40 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" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 30; } } … … 46 46 protected override int TestPartitionEnd { get { return 1461; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 List<double> oneVariableTestData = ValueGenerator.GenerateSteps(-0.05, 6.05, 0.02); … … 66 66 data.Add(results); 67 67 68 return ValueGenerator.Transformation(data);68 return data; 69 69 } 70 70 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/UnwrappedBallFunctionFiveDimensional.cs
r7664 r7682 39 39 } 40 40 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" }; } } 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 1024; } } … … 46 46 protected override int TestPartitionEnd { get { return 6024; } } 47 47 48 protected override double[,]GenerateValues() {48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 50 for (int i = 0; i < AllowedInputVariables.Count(); i++) { … … 65 65 data.Add(results); 66 66 67 return ValueGenerator.Transformation(data);67 return data; 68 68 } 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.