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