Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/17 11:57:42 (7 years ago)
Author:
pkimmesw
Message:

#2665 Storable problem data, Renamings due to typos, Removed GP from class names

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

Legend:

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

    r14727 r14733  
    22  using System.Linq;
    33
    4   using HeuristicLab.Common;
    5   using HeuristicLab.Core;
     4  using Common;
     5  using Core;
     6  using Persistence.Default.CompositeSerializers.Storable;
    67
     8  [StorableClass]
    79  public class Data : NamedItem {
    810    public Data(double bestResult, double worstResult, int testCount, int trainingCount,
     
    2022    }
    2123
     24    [StorableConstructor]
     25    public Data(bool deserializing) : base(deserializing) { }
     26
    2227    public Data(Data origin, Cloner cloner) : base(origin, cloner) {
    2328      this.BestResult = origin.BestResult;
     
    2833    }
    2934
     35    [Storable]
    3036    public readonly IExampleParser ExampleParser;
     37    [Storable]
    3138    public readonly Example[] Examples;
     39    [Storable]
    3240    public readonly int OriginalTestCount;
     41    [Storable]
    3342    public readonly int OriginalTrainingCount;
     43    [Storable]
    3444    public readonly double WorstResult;
     45    [Storable]
    3546    public readonly double BestResult;
     47    [Storable]
    3648    public readonly int InputArgumentCount;
     49    [Storable]
    3750    public readonly int OutputArgumentCount;
    3851
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Example.cs

    r14727 r14733  
    22
    33  using HeuristicLab.Common;
     4  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    45
     6  [StorableClass]
    57  public class Example : DeepCloneable {
    68    public Example() {
     
    1719    }
    1820
     21    [StorableConstructor]
     22    public Example(bool deserializing) { }
     23
    1924    public void CopyTo(Example example) {
    2025      example.InputArgs = this.InputArgs;
     
    3035    }
    3136
     37    [Storable]
    3238    public string[] InputArgs { get; set; }
     39    [Storable]
    3340    public string[] OutputArgs { get; set; }
     41    [Storable]
    3442    public long[] InputInt { get; set; }
     43    [Storable]
    3544    public double[] InputFloat { get; set; }
     45    [Storable]
    3646    public bool[] InputBoolean { get; set; }
     47    [Storable]
    3748    public long[] OutputInt { get; set; }
     49    [Storable]
    3850    public double[] OutputFloat { get; set; }
     51    [Storable]
    3952    public bool[] OutputBoolean { get; set; }
    40 
    4153
    4254    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.