Changeset 7682 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Various
- Timestamp:
- 04/02/12 10:55:26 (13 years ago)
- 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 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 }
Note: See TracChangeset
for help on using the changeset viewer.