Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/17 21:42:09 (7 years ago)
Author:
pkimmesw
Message:

#2665 Renamings due to typos, ManagedPool tests, Skip Noops in Debugger

Location:
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Checksum.cs

    r14727 r14744  
    33  using System.Text;
    44
     5  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     6
     7  [StorableClass]
    58  public class Checksum : BenchmarkSuiteDataDescriptor {
    69    private const string name = "Checksum";
    710    private const string fileName = "Checksum.csv";
    811    private const string description = "";
     12    public Checksum() { }
     13
     14    [StorableConstructor]
     15    public Checksum(bool deserializing) : base(deserializing) { }
    916
    1017    public override string Name { get { return name; } }
    11     public override string FileName { get { return fileName; } }
     18    protected override string FileName { get { return fileName; } }
    1219    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; } }
     20    public override int InputArgumentCount { get { return 1; } }
     21    public override int OutputArgumentCount { get { return 1; } }
     22    public override int OriginalTrainingCount { get { return 228; } }
     23    public override int OriginalTestCount { get { return 1254; } }
     24    public override int BestResult { get { return 0; } }
     25    public override int WorstResult { get { return byte.MaxValue; } }
    1926
    2027    public override Example ParseExample(string[] input, string[] output) {
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CountOdds.cs

    r14727 r14744  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    23
     4  [StorableClass]
    35  public class CountOdds : BenchmarkSuiteDataDescriptor {
    46    private const string name = "Count Odds";
     
    68    private const string description = "";
    79
     10    public CountOdds() { }
     11
     12    [StorableConstructor]
     13    public CountOdds(bool deserializing) : base(deserializing) { }
     14
    815    public override string Name { get { return name; } }
    9     public override string FileName { get { return fileName; } }
    1016    public override string Description { get { return description; } }
    11     protected override int InputArgumentCount { get { return 1; } }
    12     protected override int OutputArgumentCount { get { return 1; } }
    13     protected override int OriginalTrainingCount { get { return 200; } }
    14     protected override int OriginalTestCount { get { return 2000; } }
    15     protected override int BestResult { get { return 0; } }
    16     protected override int WorstResult { get { return 50; } }
     17    protected override string FileName { get { return fileName; } }
     18    public override int InputArgumentCount { get { return 1; } }
     19    public override int OutputArgumentCount { get { return 1; } }
     20    public override int OriginalTrainingCount { get { return 200; } }
     21    public override int OriginalTestCount { get { return 2000; } }
     22    public override int BestResult { get { return 0; } }
     23    public override int WorstResult { get { return 50; } }
    1724
    1825    public override Example ParseExample(string[] input, string[] output) {
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Example.cs

    r14733 r14744  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using System;
    23
    34  using HeuristicLab.Common;
     
    2324
    2425    public void CopyTo(Example example) {
    25       example.InputArgs = this.InputArgs;
    26       example.OutputArgs = this.OutputArgs;
     26      Array.Copy(InputArgs, example.InputArgs, InputArgs.Length);
     27      Array.Copy(OutputArgs, example.OutputArgs, OutputArgs.Length);
    2728
    28       example.InputBoolean = this.InputBoolean;
    29       example.InputInt = this.InputInt;
    30       example.InputFloat = this.InputFloat;
     29      Array.Copy(InputBoolean, example.InputBoolean, InputBoolean.Length);
     30      Array.Copy(InputInt, example.InputInt, InputInt.Length);
     31      Array.Copy(InputFloat, example.InputFloat, InputFloat.Length);
    3132
    32       example.OutputBoolean = this.OutputBoolean;
    33       example.OutputInt = this.OutputInt;
    34       example.OutputFloat = this.OutputFloat;
     33      Array.Copy(OutputBoolean, example.OutputBoolean, OutputBoolean.Length);
     34      Array.Copy(OutputInt, example.OutputInt, OutputInt.Length);
     35      Array.Copy(OutputFloat, example.OutputFloat, OutputFloat.Length);
    3536    }
    3637
Note: See TracChangeset for help on using the changeset viewer.