Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.BenchmarkSuite/Problems/Grades.cs @ 14602

Last change on this file since 14602 was 14602, checked in by pkimmesw, 8 years ago

#2665 PushGP HL Integration

File size: 956 bytes
Line 
1namespace 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.