Changeset 14897 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ReplaceSpaceWithNewline.cs
- Timestamp:
- 04/28/17 22:52:08 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ReplaceSpaceWithNewline.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc; 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 4 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.String; 3 5 4 6 public class ReplaceSpaceWithNewline : BenchmarkSuiteDataDescriptor { … … 24 26 TrainingCount = 100, 25 27 TestCount = 1000, 26 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String ,28 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print, 27 29 MaxSize = 800, 28 30 EvalLimit = 1600, 29 31 ErcOptions = { 30 32 ErcProbability = 0.05, 31 CharErcOptions = { 32 IsEnabled = true, 33 Constants = new [] { ' ', '\r' }, 34 Start = 0x20, 35 End = 0x7e 36 }, 37 StringErcOptions = { 38 IsEnabled = true, 39 AllowLowercaseLetters = true, 40 AllowUppercaseLetters = false, 41 AllowSpace = true, 42 SpaceProbability = 0.2 43 } 33 CharErcOptions = new CharErcOptions( 34 new IntegerConstantErcValue(' ', '\r'), 35 new IntegerRangeErcValue(0x20, 0x7e)), 36 StringErcOptions = new StringErcOptions( 37 new StringRandomErcValue { 38 IsEnabled = true, 39 AllowLowercaseLetters = true, 40 AllowUppercaseLetters = false, 41 AllowSpace = true, 42 SpaceProbability = 0.2 43 }) 44 44 } 45 45 }; … … 51 51 OutputArgs = output, 52 52 InputString = input, 53 Output String = new[] { output[0] },53 OutputPrint = output[0], 54 54 OutputInteger = ExampleArgumentConverter.ConvertIntegers(output[1]), 55 55 };
Note: See TracChangeset
for help on using the changeset viewer.