Changeset 14897 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/PigLatin.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/PigLatin.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 4 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.String; 5 2 6 public class PigLatin : BenchmarkSuiteDataDescriptor { 3 7 private const string name = "Pig Latin"; … … 22 26 TrainingCount = 200, 23 27 TestCount = 1000, 24 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, 25 29 MaxSize = 1000, 26 30 EvalLimit = 2000, 27 31 ErcOptions = { 28 32 ErcProbability = 0.05, 29 CharErcOptions = { 30 IsEnabled = true, 31 Constants = new [] { ' ', 'a', 'e', 'i', 'o', 'u' }, 32 Start = 0x20, 33 End = 0x7e 34 }, 35 StringErcOptions = { 36 IsEnabled = true, 37 Constants = new [] { "ay", "aeiou" }, 38 AllowLowercaseLetters = true, 39 AllowUppercaseLetters = false, 40 AllowSpace = true, 41 SpaceProbability = 0.2, 42 } 33 CharErcOptions = new CharErcOptions( 34 new IntegerConstantErcValue(' ', 'a', 'e', 'i', 'o', 'u'), 35 new IntegerRangeErcValue(0x20, 0x7e)), 36 StringErcOptions = new StringErcOptions( 37 new StringConstantErcValue("ay", "aeiou"), 38 new StringRandomErcValue { 39 IsEnabled = true, 40 AllowLowercaseLetters = true, 41 AllowUppercaseLetters = false, 42 AllowSpace = true, 43 SpaceProbability = 0.2, 44 }) 43 45 } 44 46 }; … … 50 52 OutputArgs = output, 51 53 InputString = input, 52 Output String = output,54 OutputPrint = output[0], 53 55 }; 54 56 }
Note: See TracChangeset
for help on using the changeset viewer.