Last change
on this file since 14744 was
14744,
checked in by pkimmesw, 7 years ago
|
#2665 Renamings due to typos, ManagedPool tests, Skip Noops in Debugger
|
File size:
1.3 KB
|
Rev | Line | |
---|
[14727] | 1 | namespace HeuristicLab.BenchmarkSuite.Problems {
|
---|
[14744] | 2 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
[14727] | 3 |
|
---|
[14744] | 4 | [StorableClass]
|
---|
[14727] | 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 |
|
---|
[14744] | 10 | public CountOdds() { }
|
---|
| 11 |
|
---|
| 12 | [StorableConstructor]
|
---|
| 13 | public CountOdds(bool deserializing) : base(deserializing) { }
|
---|
| 14 |
|
---|
[14727] | 15 | public override string Name { get { return name; } }
|
---|
| 16 | public override string Description { get { return description; } }
|
---|
[14744] | 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; } }
|
---|
[14727] | 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.