Line | |
---|
1 | namespace 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.