Changeset 15341 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
- Timestamp:
- 08/28/17 09:03:34 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ScrabbleScore.cs
r15334 r15341 45 45 46 46 public override ProblemData CreateProblemData() { 47 return new ProblemData(ProblemType. ReplaceSpaceWithNewline) {47 return new ProblemData(ProblemType.ScrabbleScore) { 48 48 Name = Name, 49 49 Description = Description, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/VectorAverage.cs
r15334 r15341 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using System; 3 using System.Linq; 4 2 5 public class VectorAverage : BenchmarkSuiteDataDescriptor { 3 6 private const string name = "Vector Average - Medium"; … … 18 21 Examples = CloneExamples(), 19 22 BestResult = 0, 20 WorstResult = 10000 00,23 WorstResult = 10000, 21 24 InputArgumentTypes = new[] { ExampleArgumentType.FloatVector }, 22 25 OutputArgumentTypes = new[] { ExampleArgumentType.Float }, … … 26 29 MaxSize = 400, 27 30 EvalLimit = 800, 31 FloatStringFormat = "N4" 28 32 }; 29 33 } … … 34 38 OutputArgs = output, 35 39 InputFloatVector = new[] { ExampleArgumentConverter.ConvertDoubles(input[0]) }, 36 OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]) ,40 OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]).Select(x => Math.Round(x, 4)).ToArray(), 37 41 OutputFloatPrecision = 4 38 42 };
Note: See TracChangeset
for help on using the changeset viewer.