Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NumberIo.cs @ 14727

Last change on this file since 14727 was 14727, checked in by pkimmesw, 7 years ago

#2665 PushGP HL Integration, Views, Parameters

File size: 1.1 KB
Line 
1//namespace HeuristicLab.BenchmarkSuite.Problems {
2//  using System.Linq;
3
4//  using HeuristicLab.BenchmarkSuite.ProblemData;
5
6//  public class NumberIo : BenchmarkSuiteDataDescriptor<double[], double> {
7//    private const string displayMame = "NumberIO";
8//    private const string description = " Given an integer and a float, print their sum.";
9
10//    public override string Name { get { return displayMame; } }
11//    public override string Description { get { return description; } }
12
13//    protected override int InputArgumentCount { get { return 2; } }
14//    protected override int OutputArgumentCount { get { return 1; } }
15
16//    public override double[] ConvertInput(string[] input) {
17//      return input.Select(ConvertDouble).ToArray();
18//    }
19
20//    public override double ConvertOutput(string[] output) {
21//      return ConvertDouble(output[0]);
22//    }
23
24//    public override IPushData CreatePushData(Example<double[], double>[] training, Example<double[], double>[] test) {
25//      return new NumberIoPushData(training, test);
26//    }
27//  }
28//}
Note: See TracBrowser for help on using the repository browser.