Changeset 14909 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite
- Timestamp:
- 05/03/17 01:31:10 (8 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/ExampleArgumentType.cs
r14875 r14909 9 9 StringVector, 10 10 Char, 11 Print, 11 12 } 12 13 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Checksum.cs
r14897 r14909 22 22 WorstResult = char.MaxValue, 23 23 InputArgumentTypes = new[] { ExampleArgumentType.String }, 24 OutputArgumentTypes = new[] { ExampleArgumentType. Char},24 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 25 25 TrainingCount = 100, 26 26 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Digits.cs
r14897 r14909 22 22 WorstResult = 20, 23 23 InputArgumentTypes = new[] { ExampleArgumentType.Integer }, 24 OutputArgumentTypes = new[] { ExampleArgumentType. String},24 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 25 25 TrainingCount = 100, 26 26 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/DoubleLetters.cs
r14897 r14909 22 22 WorstResult = 100, 23 23 InputArgumentTypes = new[] { ExampleArgumentType.String }, 24 OutputArgumentTypes = new[] { ExampleArgumentType. String},24 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 25 25 TrainingCount = 100, 26 26 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/EvenSquares.cs
r14897 r14909 19 19 WorstResult = 400, 20 20 InputArgumentTypes = new[] { ExampleArgumentType.Integer }, 21 OutputArgumentTypes = new[] { ExampleArgumentType. String},21 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 22 22 TrainingCount = 100, 23 23 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ForLoopIndex.cs
r14897 r14909 23 23 WorstResult = 1000, 24 24 InputArgumentTypes = new[] { ExampleArgumentType.Integer, ExampleArgumentType.Integer, ExampleArgumentType.Integer }, 25 OutputArgumentTypes = new[] { ExampleArgumentType. String},25 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 26 26 TrainingCount = 100, 27 27 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Grades.cs
r14897 r14909 22 22 WorstResult = 25, 23 23 InputArgumentTypes = new[] { ExampleArgumentType.Integer, ExampleArgumentType.Integer, ExampleArgumentType.Integer, ExampleArgumentType.Integer, ExampleArgumentType.Integer }, 24 OutputArgumentTypes = new[] { ExampleArgumentType. String},24 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 25 25 TrainingCount = 200, 26 26 TestCount = 2000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/PigLatin.cs
r14897 r14909 23 23 WorstResult = 100, 24 24 InputArgumentTypes = new[] { ExampleArgumentType.String }, 25 OutputArgumentTypes = new[] { ExampleArgumentType. String},25 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 26 26 TrainingCount = 200, 27 27 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ReplaceSpaceWithNewline.cs
r14897 r14909 23 23 WorstResult = 20, 24 24 InputArgumentTypes = new[] { ExampleArgumentType.String }, 25 OutputArgumentTypes = new[] { ExampleArgumentType. String, ExampleArgumentType.Integer },25 OutputArgumentTypes = new[] { ExampleArgumentType.Print, ExampleArgumentType.Integer }, 26 26 TrainingCount = 100, 27 27 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ScrabbleScore.cs
r14897 r14909 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char;3 2 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; 4 3 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.IntegerVector; … … 74 73 OutputArgs = output, 75 74 InputString = input, 76 OutputInteger Vector = new[] { ExampleArgumentConverter.ConvertIntegers(output[0]) }75 OutputInteger = ExampleArgumentConverter.ConvertIntegers(output[0]) 77 76 }; 78 77 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringDifferences.cs
r14897 r14909 22 22 WorstResult = 100, 23 23 InputArgumentTypes = new[] { ExampleArgumentType.String, ExampleArgumentType.String }, 24 OutputArgumentTypes = new[] { ExampleArgumentType. String},24 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 25 25 TrainingCount = 200, 26 26 TestCount = 2000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringLengthsBackwards.cs
r14897 r14909 21 21 WorstResult = 200, 22 22 InputArgumentTypes = new[] { ExampleArgumentType.StringVector }, 23 OutputArgumentTypes = new[] { ExampleArgumentType. String},23 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 24 24 TrainingCount = 100, 25 25 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Syllables.cs
r14897 r14909 23 23 WorstResult = 100, 24 24 InputArgumentTypes = new[] { ExampleArgumentType.String }, 25 OutputArgumentTypes = new[] { ExampleArgumentType. Integer},25 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 26 26 TrainingCount = 100, 27 27 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/WordStats.cs
r14897 r14909 24 24 WorstResult = 1000, 25 25 InputArgumentTypes = new[] { ExampleArgumentType.String }, 26 OutputArgumentTypes = new[] { ExampleArgumentType. String},26 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 27 27 TrainingCount = 100, 28 28 TestCount = 1000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/XWordLines.cs
r14897 r14909 22 22 WorstResult = 100, 23 23 InputArgumentTypes = new[] { ExampleArgumentType.Integer, ExampleArgumentType.String }, 24 OutputArgumentTypes = new[] { ExampleArgumentType. String},24 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, 25 25 TrainingCount = 150, 26 26 TestCount = 2000, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Views/ViewHelper.cs
r14898 r14909 1 1 namespace HeuristicLab.BenchmarkSuite.Views { 2 using System.Linq; 3 2 4 public static class ViewHelper { 3 5 public static string StringifyInput(ExampleArgumentType type, Example example, string valueSeparator) { 4 6 switch (type) { 5 7 case ExampleArgumentType.Integer: return string.Join(valueSeparator, example.InputInteger); 6 //case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.InputInteger);8 case ExampleArgumentType.IntegerVector: return "[" + string.Join("], [", example.InputIntegerVector.Select(vector => string.Join(valueSeparator, vector))) + "]"; 7 9 8 10 case ExampleArgumentType.Float: return string.Join(valueSeparator, example.InputFloat); 9 //case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.InputFloat);11 case ExampleArgumentType.FloatVector: return "[" + string.Join("], [", example.InputFloatVector.Select(vector => string.Join(valueSeparator, vector))) + "]"; 10 12 11 13 case ExampleArgumentType.Boolean: return string.Join(valueSeparator, example.InputBoolean); … … 13 15 14 16 case ExampleArgumentType.String: return string.Join(valueSeparator, example.InputString); 15 //case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.InputString);17 case ExampleArgumentType.StringVector: return "[" + string.Join("], [", example.InputStringVector.Select(vector => string.Join(valueSeparator, vector))) + "]"; 16 18 default: return string.Empty; 17 19 } … … 21 23 switch (type) { 22 24 case ExampleArgumentType.Integer: return string.Join(valueSeparator, example.OutputInteger); 23 //case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.OutputIntegerVector);25 case ExampleArgumentType.IntegerVector: return "[" + string.Join("], [", example.OutputIntegerVector.Select(vector => string.Join(valueSeparator, vector))) + "]"; 24 26 25 27 case ExampleArgumentType.Float: return string.Join(valueSeparator, example.OutputFloat); 26 //case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.OutputFloat);28 case ExampleArgumentType.FloatVector: return "[" + string.Join("], [", example.OutputFloatVector.Select(vector => string.Join(valueSeparator, vector))) + "]"; 27 29 28 30 case ExampleArgumentType.Boolean: return string.Join(valueSeparator, example.OutputBoolean); … … 30 32 31 33 case ExampleArgumentType.String: return string.Join(valueSeparator, example.OutputString); 32 //case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.OutputString); 34 case ExampleArgumentType.Print: return string.Join(valueSeparator, example.OutputPrint); 35 case ExampleArgumentType.StringVector: return "[" + string.Join("], [", example.OutputStringVector.Select(vector => string.Join(valueSeparator, vector))) + "]"; 36 33 37 default: return string.Empty; 34 38 } … … 42 46 private const string CharColumnHeader = "char"; 43 47 private const string StringColumnHeader = "string"; 48 private const string PrintColumnHeader = "print"; 44 49 private const string StringsColumnHeader = "string[]"; 45 50 public static string GetHeaderTypeName(ExampleArgumentType type) { … … 50 55 case ExampleArgumentType.Char: return CharColumnHeader; 51 56 case ExampleArgumentType.String: return StringColumnHeader; 57 case ExampleArgumentType.Print: return PrintColumnHeader; 52 58 case ExampleArgumentType.IntegerVector: return IntegersColumnHeader; 53 59 case ExampleArgumentType.FloatVector: return DoublesColumnHeader;
Note: See TracChangeset
for help on using the changeset viewer.