Last change
on this file since 14745 was
14744,
checked in by pkimmesw, 8 years ago
|
#2665 Renamings due to typos, ManagedPool tests, Skip Noops in Debugger
|
File size:
1.3 KB
|
Line | |
---|
1 | namespace HeuristicLab.BenchmarkSuite.Problems {
|
---|
2 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
3 |
|
---|
4 | [StorableClass]
|
---|
5 | public class CountOdds : BenchmarkSuiteDataDescriptor {
|
---|
6 | private const string name = "Count Odds";
|
---|
7 | private const string fileName = "CountOdds.csv";
|
---|
8 | private const string description = "";
|
---|
9 |
|
---|
10 | public CountOdds() { }
|
---|
11 |
|
---|
12 | [StorableConstructor]
|
---|
13 | public CountOdds(bool deserializing) : base(deserializing) { }
|
---|
14 |
|
---|
15 | public override string Name { get { return name; } }
|
---|
16 | public override string Description { get { return description; } }
|
---|
17 | protected override string FileName { get { return fileName; } }
|
---|
18 | public override int InputArgumentCount { get { return 1; } }
|
---|
19 | public override int OutputArgumentCount { get { return 1; } }
|
---|
20 | public override int OriginalTrainingCount { get { return 200; } }
|
---|
21 | public override int OriginalTestCount { get { return 2000; } }
|
---|
22 | public override int BestResult { get { return 0; } }
|
---|
23 | public override int WorstResult { get { return 50; } }
|
---|
24 |
|
---|
25 | public override Example ParseExample(string[] input, string[] output) {
|
---|
26 | return new Example {
|
---|
27 | InputArgs = input,
|
---|
28 | OutputArgs = output,
|
---|
29 | InputInt = ConvertIntegers(input[0]),
|
---|
30 | OutputInt = ConvertIntegers(output[0])
|
---|
31 | };
|
---|
32 | }
|
---|
33 | }
|
---|
34 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.