Changeset 9007 for trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionThirteen.cs
- Timestamp:
- 12/06/12 14:13:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionThirteen.cs
r8825 r9007 35 35 + "range(train): 20 Train cases x,y = rnd(-3, 3)" + Environment.NewLine 36 36 + "range(test): x,y = [-3:0.01:3]" + Environment.NewLine 37 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)" + Environment.NewLine + Environment.NewLine 38 + "Note: Test partition has been adjusted to only 100 random uniformly distributed test cases in the interval [-3, 3] (not ca. 360000 as described) " 39 + ", but 5000 cases are created"; 37 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 40 38 } 41 39 } … … 45 43 protected override int TrainingPartitionStart { get { return 0; } } 46 44 protected override int TrainingPartitionEnd { get { return 20; } } 47 protected override int TestPartitionStart { get { return 2 500; } }48 protected override int TestPartitionEnd { get { return 2 600; } }45 protected override int TestPartitionStart { get { return 20; } } 46 protected override int TestPartitionEnd { get { return 20 + (601 * 601); } } 49 47 50 48 protected override List<List<double>> GenerateValues() { 51 49 List<List<double>> data = new List<List<double>>(); 50 List<double> oneVariableTestData = ValueGenerator.GenerateSteps(-3, 3, 0.01).ToList(); 51 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 52 53 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList(); 54 52 55 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 53 data.Add(ValueGenerator.GenerateUniformDistributedValues(5000, -3, 3).ToList()); 56 data.Add(ValueGenerator.GenerateUniformDistributedValues(20, -3, 3).ToList()); 57 data[i].AddRange(combinations[i]); 54 58 } 55 59
Note: See TracChangeset
for help on using the changeset viewer.