Line | |
---|
1 | namespace HeuristicLab.BenchmarkSuite.Problems {
|
---|
2 | using System;
|
---|
3 | using System.Text;
|
---|
4 |
|
---|
5 | public class Checksum : BenchmarkSuiteDataDescriptor {
|
---|
6 | private const string name = "Checksum";
|
---|
7 | private const string fileName = "Checksum.csv";
|
---|
8 | private const string description = "";
|
---|
9 |
|
---|
10 | public override string Name { get { return name; } }
|
---|
11 | public override string FileName { get { return fileName; } }
|
---|
12 | public override string Description { get { return description; } }
|
---|
13 | protected override int InputArgumentCount { get { return 1; } }
|
---|
14 | protected override int OutputArgumentCount { get { return 1; } }
|
---|
15 | protected override int OriginalTrainingCount { get { return 228; } }
|
---|
16 | protected override int OriginalTestCount { get { return 1254; } }
|
---|
17 | protected override int BestResult { get { return 0; } }
|
---|
18 | protected override int WorstResult { get { return byte.MaxValue; } }
|
---|
19 |
|
---|
20 | public override Example ParseExample(string[] input, string[] output) {
|
---|
21 | return new Example {
|
---|
22 | InputArgs = input,
|
---|
23 | OutputArgs = output,
|
---|
24 | InputInt = Array.ConvertAll(Encoding.ASCII.GetBytes(input[0]), c => (long)c),
|
---|
25 | OutputInt = Array.ConvertAll(Encoding.ASCII.GetBytes(output[0]), c => (long)c)
|
---|
26 | };
|
---|
27 | }
|
---|
28 | }
|
---|
29 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.