source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CountOdds.cs @ 14834

Last change on this file since 14834 was 14834, checked in by pkimmesw, 2 years ago

#2665 LexicaseSelector, Performance improvements, UI Fixes, Debugger only shows used stacks, fixed Debugger stepping, Added vector expressions, ERCOptions,

File size: 1.5 KB
Line 
1namespace HeuristicLab.BenchmarkSuite.Problems {
2
3  public class CountOdds : BenchmarkSuiteDataDescriptor {
4    private const string name = "Count Odds";
5    private const string fileName = "CountOdds.csv";
6    private const string description = "";
7
8    protected override string FileName { get { return fileName; } }
9    public override string Name { get { return name; } }
10    public override string Description { get { return description; } }
11    protected override int InputArgumentCount { get { return 1; } }
12    protected override int OutputArgumentCount { get { return 1; } }
13
14    public override Data CreateProblemData() {
15      return new Data {
16        Name = Name,
17        Description = Description,
18        Examples = CloneExamples(),
19        BestResult = 0,
20        WorstResult = 50,
21        InputArgumentTypes = new[] { ExampleArgumentType.IntegerCollection },
22        OutputArgumentTypes = new[] { ExampleArgumentType.Integer },
23        OriginalTestCount = 2000,
24        OriginalTrainingCount = 200,
25        EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.IntegerVector,
26        EvalLimit = 1500,
27        MaxSize = 500,
28      };
29    }
30
31    protected override Example ParseExample(string[] input, string[] output) {
32      return new Example {
33        InputArgs = input,
34        OutputArgs = output,
35        InputInt = ExampleArgumentConverter.ConvertIntegers(input[0]),
36        OutputInt = ExampleArgumentConverter.ConvertIntegers(output[0])
37      };
38    }
39  }
40}
Note: See TracBrowser for help on using the repository browser.