Changeset 14897 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
- Timestamp:
- 04/28/17 22:52:08 (8 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Checksum.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 2 5 public class Checksum : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Checksum"; … … 22 25 TrainingCount = 100, 23 26 TestCount = 1000, 24 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String ,27 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print, 25 28 MaxSize = 800, 26 29 EvalLimit = 1500, 27 30 ErcOptions = { 28 31 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Constants = new [] { 64 }, 32 Start = -128, 33 End = 128 34 }, 35 CharErcOptions = { 36 IsEnabled = true, 37 Constants = new [] { ' ' }, 38 Start = 0x20, 39 End = 0x7e 40 } 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerConstantErcValue(64), 34 new IntegerRangeErcValue(-128, 128)), 35 CharErcOptions = new CharErcOptions( 36 new IntegerConstantErcValue(' '), 37 new IntegerRangeErcValue(0x20, 0x7e)) 41 38 } 42 39 }; … … 48 45 OutputArgs = output, 49 46 InputString = input, 50 Output Char = output[0].ToCharArray(),47 OutputPrint = output[0], 51 48 }; 52 49 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CollatzNumbers.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 3 4 4 public class CollatzNumbers : BenchmarkSuiteDataDescriptor { … … 29 29 ErcOptions = { 30 30 ErcProbability = 0.05, 31 IntegerErcOptions = { 32 IsEnabled = true, 33 Constants = new [] { 0, 1 }, 34 Start = -100, 35 End = 100 36 } 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErcValue(0, 1), 33 new IntegerRangeErcValue(-100, 100)) 37 34 } 38 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CompareStringLengths.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc ;2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Boolean; 3 3 4 4 public class CompareStringLengths : BenchmarkSuiteDataDescriptor { … … 29 29 ErcOptions = { 30 30 ErcProbability = 0.05, 31 BooleanErcOptions = { 32 IsEnabled = true, 33 AllowTrue = true, 34 AllowFalse = true 31 BooleanErcOptions = new BooleanErcOptions { 32 new BooleanRandomErcValue { 33 AllowTrue = true, 34 AllowFalse = true 35 } 35 36 } 36 37 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CountOdds.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc ;2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 3 4 4 public class CountOdds : BenchmarkSuiteDataDescriptor { … … 29 29 ErcOptions = { 30 30 ErcProbability = 0.05, 31 IntegerErcOptions = { 32 IsEnabled = true, 33 Constants = new [] { 0, 1, 2}, 34 Start = -1000, 35 End = 1000 36 } 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErcValue(0, 1, 2), 33 new IntegerRangeErcValue(-1000, 1000)), 37 34 } 38 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Digits.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 2 5 public class Digits : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Digits"; … … 22 25 TrainingCount = 100, 23 26 TestCount = 1000, 24 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String ,27 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print, 25 28 MaxSize = 300, 26 29 EvalLimit = 600, 27 30 ErcOptions = { 28 31 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Start = -10, 32 End = 10 33 }, 34 CharErcOptions = { 35 IsEnabled = true, 36 Constants = new [] { '\r' }, 37 } 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerRangeErcValue(-10, 10)), 34 CharErcOptions = new CharErcOptions( 35 new IntegerConstantErcValue('\r')) 38 36 } 39 37 }; … … 45 43 OutputArgs = output, 46 44 InputInteger = ExampleArgumentConverter.ConvertIntegers(input[0]), 47 Output String = output,45 OutputPrint = output[0], 48 46 }; 49 47 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/DoubleLetters.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; 3 4 4 5 public class DoubleLetters : BenchmarkSuiteDataDescriptor { … … 24 25 TrainingCount = 100, 25 26 TestCount = 1000, 26 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.Char ,27 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.Char | DataTypes.Print, 27 28 MaxSize = 800, 28 29 EvalLimit = 1600, 29 30 ErcOptions = { 30 31 ErcProbability = 0.02, 31 CharErcOptions = { 32 IsEnabled = true, 33 Constants = new [] { '!' } 34 } 32 CharErcOptions = new CharErcOptions( 33 new IntegerConstantErcValue('!')) 35 34 } 36 35 }; … … 42 41 OutputArgs = output, 43 42 InputString = input, 44 Output String = output,43 OutputPrint = output[0], 45 44 }; 46 45 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/EvenSquares.cs
r14875 r14897 22 22 TrainingCount = 100, 23 23 TestCount = 1000, 24 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean ,24 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Print, 25 25 MaxSize = 400, 26 26 EvalLimit = 2000, … … 33 33 OutputArgs = output, 34 34 InputInteger = ExampleArgumentConverter.ConvertIntegers(input), 35 Output String = output,35 OutputPrint = output[0], 36 36 }; 37 37 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ForLoopIndex.cs
r14875 r14897 23 23 WorstResult = 1000, 24 24 InputArgumentTypes = new[] { ExampleArgumentType.Integer, ExampleArgumentType.Integer, ExampleArgumentType.Integer }, 25 OutputArgumentTypes = new[] { ExampleArgumentType. IntegerVector},25 OutputArgumentTypes = new[] { ExampleArgumentType.String }, 26 26 TrainingCount = 100, 27 27 TestCount = 1000, 28 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes. IntegerVector,28 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.Print, 29 29 MaxSize = 300, 30 30 EvalLimit = 600, … … 37 37 OutputArgs = output, 38 38 InputInteger = ExampleArgumentConverter.ConvertIntegers(input), 39 Output IntegerVector = new[] { ExampleArgumentConverter.ConvertIntegers(output[0]) }39 OutputPrint = output[0] 40 40 }; 41 41 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Grades.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.String; 4 2 5 public class Grades : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Grades"; … … 22 25 TrainingCount = 200, 23 26 TestCount = 2000, 24 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String ,27 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.Print, 25 28 MaxSize = 400, 26 29 EvalLimit = 800, 27 30 ErcOptions = { 28 31 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Start = 0, 32 End = 100 33 }, 34 StringErcOptions = { 35 IsEnabled = true, 36 Constants = new [] { "Student has a ", " grade", "A", "B", "C", "D", "F" }, 37 } 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerRangeErcValue(0, 100)), 34 StringErcOptions = new StringErcOptions( 35 new StringConstantErcValue("Student has a ", " grade", "A", "B", "C", "D", "F")) 38 36 } 39 37 }; … … 45 43 OutputArgs = output, 46 44 InputInteger = ExampleArgumentConverter.ConvertIntegers(input), 47 Output String = output,45 OutputPrint = output[0], 48 46 }; 49 47 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/LastIndexOfZero.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc ;2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 3 4 4 public class LastIndexOfZero : BenchmarkSuiteDataDescriptor { … … 29 29 ErcOptions = { 30 30 ErcProbability = 0.05, 31 IntegerErcOptions = { 32 IsEnabled = true, 33 Constants = new [] { 0 }, 34 Start = -50, 35 End = 50 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErcValue(0), 33 new IntegerRangeErcValue(-50, 50)) 36 34 } 37 }38 35 }; 39 36 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Median.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 2 4 public class Median : BenchmarkSuiteDataDescriptor { 3 5 private const string name = "Median"; … … 27 29 ErcOptions = { 28 30 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Start = -100, 32 End = 100 33 } 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErcValue(0), 33 new IntegerRangeErcValue(-1000, 100)) 34 34 } 35 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/MirrorImage.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Boolean; 2 3 3 4 public class MirrorImage : BenchmarkSuiteDataDescriptor { … … 28 29 ErcOptions = { 29 30 ErcProbability = 0.05, 30 BooleanErcOptions = {31 IsEnabled = true,32 AllowFalse = true,33 AllowTrue = true34 }31 BooleanErcOptions = new BooleanErcOptions( 32 new BooleanRandomErcValue { 33 AllowFalse = true, 34 AllowTrue = true 35 }) 35 36 } 36 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NegativeToZero.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.IntegerVector; 4 2 5 public class NegativeToZero : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Negative to Zero"; … … 27 30 ErcOptions = { 28 31 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Constants = new [] { 0 } 32 }, 33 IntegerVectorErcOptions = { 34 IsEnabled = true, 35 Constants = new [] { new int[0] } 36 } 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerConstantErcValue(0)), 34 IntegerVectorErcOptions = new IntegerVectorErcOptions( 35 new IntegerVectorConstantsErcValue(new int[0])) 37 36 } 38 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NumberIo.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc; 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Float; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 4 4 5 public class NumberIO : BenchmarkSuiteDataDescriptor { … … 28 29 MaxSize = 200, 29 30 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 } 31 ErcProbability = 0.01, 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerRangeErcValue(-100, 100)), 34 FloatErcOptions = new FloatErcOptions( 35 new FloatRangeErcValue(-100, 100)) 41 36 } 42 37 }; -
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 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ProblemData.cs
r14875 r14897 4 4 using Core; 5 5 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc; 6 6 7 using Persistence.Default.CompositeSerializers.Storable; 7 8 -
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 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ScrabbleScore.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.IntegerVector; 2 5 3 6 public class ScrabbleScore : BenchmarkSuiteDataDescriptor { … … 58 61 ErcOptions = { 59 62 ErcProbability = 0.05, 60 IntegerErcOptions = { 61 IsEnabled = true, 62 Constants = ScrabbleValues 63 }, 64 IntegerVectorErcOptions = { 65 IsEnabled = true, 66 Constants = new [] { ScrabbleValues } 67 } 63 IntegerErcOptions = new IntegerErcOptions( 64 new IntegerConstantErcValue(ScrabbleValues)), 65 IntegerVectorErcOptions = new IntegerVectorErcOptions( 66 new IntegerVectorConstantsErcValue(ScrabbleValues)) 68 67 } 69 68 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SmallOrLarge.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.String; 4 2 5 public class SmallOrLarge : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Small or Large"; … … 23 26 TrainingCount = 100, 24 27 TestCount = 1000, 25 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String ,28 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.Print, 26 29 MaxSize = 200, 27 30 EvalLimit = 300, 28 31 ErcOptions = { 29 32 ErcProbability = 0.05, 30 IntegerErcOptions = { 31 IsEnabled = true, 32 Start = -10000, 33 End = 10000 34 }, 35 StringErcOptions = { 36 IsEnabled = true, 37 Constants = new [] { "small", "large" } 38 } 33 IntegerErcOptions = new IntegerErcOptions( 34 new IntegerRangeErcValue(-10000, 10000)), 35 StringErcOptions = new StringErcOptions( 36 new StringConstantErcValue("small", "large")) 39 37 } 40 38 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Smallest.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 2 4 public class Smallest : BenchmarkSuiteDataDescriptor { 3 5 private const string name = "Smallest"; … … 27 29 ErcOptions = { 28 30 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Start = -100, 32 End = 100 33 } 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerRangeErcValue(-100, 100)), 34 33 } 35 34 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringDifferences.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; 3 4 4 5 public class StringDifferences : BenchmarkSuiteDataDescriptor { … … 24 25 TrainingCount = 200, 25 26 TestCount = 2000, 26 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String ,27 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print, 27 28 MaxSize = 1000, 28 29 EvalLimit = 2000, 29 30 ErcOptions = { 30 31 ErcProbability = 0.05, 31 CharErcOptions = { 32 IsEnabled = true, 33 Constants = new [] { ' ', '\r' }, 34 }, 35 IntegerErcOptions = { 36 IsEnabled = true, 37 Start = -10, 38 End = 10 39 } 32 CharErcOptions = new CharErcOptions( 33 new IntegerConstantErcValue(' ', '\r')), 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErcValue(-10, 10)) 40 36 } 41 37 }; … … 47 43 OutputArgs = output, 48 44 InputString = input, 49 Output String = output,45 OutputPrint = output[0], 50 46 }; 51 47 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringLengthsBackwards.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc ;2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 3 4 4 public class StringLengthsBackwards : BenchmarkSuiteDataDescriptor { 5 5 private const string name = "String Length Backwards"; 6 private const string fileName = "StringLength Backwards.csv";6 private const string fileName = "StringLengthsBackwards.csv"; 7 7 private const string description = "Given a vector of strings, print the length of each string in the vector starting with the last and ending with the first."; 8 8 … … 24 24 TrainingCount = 100, 25 25 TestCount = 1000, 26 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.StringVector ,26 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.StringVector | DataTypes.Print, 27 27 MaxSize = 300, 28 28 EvalLimit = 600, 29 29 ErcOptions = { 30 30 ErcProbability = 0.05, 31 IntegerErcOptions = { 32 IsEnabled = true, 33 Start = -100, 34 End = 100 35 } 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerRangeErcValue(-100, 100)) 36 33 } 37 34 }; … … 43 40 OutputArgs = output, 44 41 InputStringVector = new[] { ExampleArgumentConverter.ConvertStringVector(input[0]) }, 45 Output String = output,42 OutputPrint = output[0], 46 43 }; 47 44 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SumOfSquares.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 2 4 public class SumOfSquares : BenchmarkSuiteDataDescriptor { 3 5 private const string name = "Sum of Squares"; … … 27 29 ErcOptions = { 28 30 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Start = -100, 32 End = 100 33 } 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerRangeErcValue(-100, 100)) 34 33 } 35 34 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SuperAnagrams.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Boolean; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char; 4 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 5 2 6 public class SuperAnagrams : BenchmarkSuiteDataDescriptor { 3 7 private const string name = "Super Anagrams"; … … 27 31 ErcOptions = { 28 32 ErcProbability = 0.05, 29 BooleanErcOptions = { 30 IsEnabled = true, 31 AllowFalse = true, 32 AllowTrue = true 33 }, 34 IntegerErcOptions = { 35 IsEnabled = true, 36 Start = -1000, 37 End = 1000 38 }, 39 CharErcOptions = { 40 IsEnabled = true, 41 Start = 0x20, 42 End = 0x7e 43 } 33 BooleanErcOptions = new BooleanErcOptions( 34 new BooleanRandomErcValue { 35 IsEnabled = true, 36 AllowFalse = true, 37 AllowTrue = true 38 }), 39 IntegerErcOptions = new IntegerErcOptions( 40 new IntegerRangeErcValue(-1000, 1000)), 41 CharErcOptions = new CharErcOptions( 42 new IntegerRangeErcValue(0x20, 0x7e)) 44 43 } 45 44 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Syllables.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 Syllables : BenchmarkSuiteDataDescriptor { 3 7 private const string name = "Syllables"; … … 27 31 ErcOptions = { 28 32 ErcProbability = 0.05, 29 StringErcOptions = { 30 IsEnabled = true, 31 Constants = new [] { "The number of syllables is ", "aeiouy" }, 32 AllowLowercaseLetters = true, 33 AllowUppercaseLetters = false, 34 AllowDigits = true, 35 AllowSymbols = true, 36 AllowSpace = true, 37 SpaceProbability = 0.2, 38 VowelProbability = 0.2 39 }, 40 CharErcOptions = { 41 IsEnabled = true, 42 Constants = new [] { 'a', 'e', 'i', 'o', 'u' }, 43 Start = 0x20, 44 End = 0x7e 45 } 33 StringErcOptions = new StringErcOptions( 34 new StringConstantErcValue("The number of syllables is ", "aeiouy" ), 35 new StringRandomErcValue { 36 AllowLowercaseLetters = true, 37 AllowUppercaseLetters = false, 38 AllowDigits = true, 39 AllowSymbols = true, 40 AllowSpace = true, 41 SpaceProbability = 0.2, 42 VowelProbability = 0.2 43 }), 44 CharErcOptions = new CharErcOptions ( 45 new IntegerConstantErcValue('a', 'e', 'i', 'o', 'u'), 46 new IntegerRangeErcValue(0x20, 0x7e)) 46 47 } 47 48 }; … … 53 54 OutputArgs = output, 54 55 InputString = input, 55 Output Integer = ExampleArgumentConverter.ConvertIntegers(output[0]),56 OutputPrint = output[0], 56 57 }; 57 58 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/VectorSummed.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.IntegerVector; 4 2 5 public class VectorSummed : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Vector Summed"; … … 27 30 ErcOptions = { 28 31 ErcProbability = 0.05, 29 IntegerVectorErcOptions = { 30 IsEnabled = true, 31 Constants = new [] { new int[0] } 32 }, 33 IntegerErcOptions = { 34 IsEnabled = true, 35 Start = -1000, 36 End = 1000 37 } 32 IntegerVectorErcOptions = new IntegerVectorErcOptions( 33 new IntegerVectorConstantsErcValue(new int[0])), 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErcValue(-1000, 1000)) 38 36 } 39 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/WallisPi.cs
r14875 r14897 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Float; 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 4 2 5 public class WallisPi : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Wallis Pi"; … … 27 30 ErcOptions = { 28 31 ErcProbability = 0.05, 29 FloatErcOptions = { 30 IsEnabled = true, 31 Start = -500, 32 End = 500, 33 }, 34 IntegerErcOptions = { 35 IsEnabled = true, 36 Start = -500, 37 End = 500 38 } 32 FloatErcOptions = new FloatErcOptions( 33 new FloatRangeErcValue(-500, 500)), 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErcValue(-500, 500)) 39 36 } 40 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/WordStats.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.IntegerVector; 5 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.String; 6 2 7 public class WordStats : BenchmarkSuiteDataDescriptor { 3 8 private const string name = "Word Stats"; … … 22 27 TrainingCount = 100, 23 28 TestCount = 1000, 24 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Float | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.IntegerVector | DataTypes.FloatVector | DataTypes.StringVector ,29 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Float | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.IntegerVector | DataTypes.FloatVector | DataTypes.StringVector | DataTypes.Print, 25 30 MaxSize = 1000, 26 31 EvalLimit = 6000, 27 32 ErcOptions = { 28 33 ErcProbability = 0.05, 29 IntegerErcOptions = { 30 IsEnabled = true, 31 Start = 100, 32 End = 100 33 }, 34 IntegerVectorErcOptions = { 35 IsEnabled = true, 36 Constants = new [] { new int[0] } 37 }, 38 CharErcOptions = { 39 IsEnabled = true, 40 Constants = new [] { '.', '?', '!', ' ', '\t', '\r', ':' } 41 }, 42 StringErcOptions = { 43 IsEnabled = true, 44 Constants = new [] { "words of length ", ": ", "number of sentences: ", "average sentence length: " } 45 } 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErcValue(-100, 100)), 36 IntegerVectorErcOptions = new IntegerVectorErcOptions( 37 new IntegerVectorConstantsErcValue(new int[0])), 38 CharErcOptions = new CharErcOptions( 39 new IntegerConstantErcValue('.', '?', '!', ' ', '\t', '\r', ':')), 40 StringErcOptions = new StringErcOptions( 41 new StringConstantErcValue("words of length ", ": ", "number of sentences: ", "average sentence length: ")) 46 42 } 47 43 }; … … 53 49 OutputArgs = output, 54 50 InputString = input, 55 Output String = output,51 OutputPrint = output[0] 56 52 }; 57 53 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/XWordLines.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 2 5 public class XWordLines : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "X-Word Lines"; … … 22 25 TrainingCount = 150, 23 26 TestCount = 2000, 24 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String ,27 EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print, 25 28 MaxSize = 800, 26 29 EvalLimit = 1600, 27 30 ErcOptions = { 28 31 ErcProbability = 0.05, 29 CharErcOptions = { 30 IsEnabled = true, 31 Constants = new [] { ' ', '\r' } 32 } 32 CharErcOptions = new CharErcOptions( 33 new IntegerConstantErcValue(' ', '\r')), 33 34 } 34 35 }; … … 39 40 InputArgs = input, 40 41 OutputArgs = output, 41 InputInteger = ExampleArgumentConverter.ConvertIntegers(input[ 0]),42 InputString = new[] { input[ 1] },43 Output String = output,42 InputInteger = ExampleArgumentConverter.ConvertIntegers(input[1]), 43 InputString = new[] { input[0] }, 44 OutputPrint = output[0], 44 45 }; 45 46 }
Note: See TracChangeset
for help on using the changeset viewer.