Line | |
---|
1 | namespace HeuristicLab.BenchmarkSuite.Problems {
|
---|
2 | using HeuristicLab.BenchmarkSuite.ProblemData;
|
---|
3 |
|
---|
4 | public class CountOdds : BenchmarkSuiteDataDescriptor<long[], long> {
|
---|
5 | private const string displayMame = "Count Odds";
|
---|
6 | private const string description = "";
|
---|
7 |
|
---|
8 | public override string Name { get { return displayMame; } }
|
---|
9 | public override string Description { get { return description; } }
|
---|
10 |
|
---|
11 | protected override int InputCount { get { return 1; } }
|
---|
12 | protected override int OutputCount { get { return 1; } }
|
---|
13 |
|
---|
14 | public override long[] ConvertInput(string[] input) {
|
---|
15 | return ConvertIntegers(input[0]);
|
---|
16 | }
|
---|
17 |
|
---|
18 | public override long ConvertOutput(string[] output) {
|
---|
19 | return ConvertInteger(output[0]);
|
---|
20 | }
|
---|
21 |
|
---|
22 | public override IPushData CreatePushData(Example<long[], long>[] training, Example<long[], long>[] test) {
|
---|
23 | return new CountOddsPushData(training, test);
|
---|
24 | }
|
---|
25 | }
|
---|
26 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.