Changeset 14875 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NumberIo.cs
- Timestamp:
- 04/18/17 01:15:25 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NumberIo.cs
r14834 r14875 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc; 3 2 4 public class NumberIO : BenchmarkSuiteDataDescriptor { 3 5 private const string name = "NumberIO"; … … 11 13 protected override int OutputArgumentCount { get { return 1; } } 12 14 13 public override Data CreateProblemData() {14 return new Data {15 public override ProblemData CreateProblemData() { 16 return new ProblemData { 15 17 Name = Name, 16 18 Description = Description, … … 20 22 InputArgumentTypes = new[] { ExampleArgumentType.Float, ExampleArgumentType.Integer }, 21 23 OutputArgumentTypes = new[] { ExampleArgumentType.Float }, 22 OriginalTrainingCount = 25,23 OriginalTestCount = 1000,24 TrainingCount = 25, 25 TestCount = 1000, 24 26 EnabledDataTypes = DataTypes.Integer | DataTypes.Float, 25 27 EvalLimit = 200, 26 28 MaxSize = 200, 29 ErcOptions = { 30 ErcProbability = 0.05, 31 IntegerErcOptions = { 32 IsEnabled = true, 33 Start = -100, 34 End = 100 35 }, 36 FloatErcOptions = { 37 IsEnabled = true, 38 Start = -100.0, 39 End = 100.0 40 } 41 } 27 42 }; 28 43 } … … 33 48 OutputArgs = output, 34 49 InputFloat = ExampleArgumentConverter.ConvertDoubles(input[0]), 35 InputInt = ExampleArgumentConverter.ConvertIntegers(input[1]),50 InputInteger = ExampleArgumentConverter.ConvertIntegers(input[1]), 36 51 OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]) 37 52 };
Note: See TracChangeset
for help on using the changeset viewer.