Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 14733 was 14727, checked in by pkimmesw, 7 years ago

#2665 PushGP HL Integration, Views, Parameters

File size: 1.1 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    public override string Name { get { return name; } }
9    public override string FileName { get { return fileName; } }
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    protected override int OriginalTrainingCount { get { return 200; } }
14    protected override int OriginalTestCount { get { return 2000; } }
15    protected override int BestResult { get { return 0; } }
16    protected override int WorstResult { get { return 50; } }
17
18    public override Example ParseExample(string[] input, string[] output) {
19      return new Example {
20        InputArgs = input,
21        OutputArgs = output,
22        InputInt = ConvertIntegers(input[0]),
23        OutputInt = ConvertIntegers(output[0])
24      };
25    }
26  }
27}
Note: See TracBrowser for help on using the repository browser.