Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/10/17 00:27:31 (7 years ago)
Author:
pkimmesw
Message:

#2665 LexicaseSelector, Performance improvements, UI Fixes, Debugger only shows used stacks, fixed Debugger stepping, Added vector expressions, ERCOptions,

File:
1 edited

Legend:

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

    r14777 r14834  
    22  using System.Linq;
    33
    4   using HeuristicLab.BenchmarkSuite.ERC;
    54  using HeuristicLab.Common;
    65  using HeuristicLab.Core;
     
    1615
    1716    public Data(Data origin, Cloner cloner) : base(origin, cloner) {
    18       Name = origin.Name;
    19       Description = origin.Description;
    2017      OriginalTrainingCount = origin.OriginalTrainingCount;
    2118      OriginalTestCount = origin.OriginalTestCount;
     
    2421      InputArgumentTypes = origin.InputArgumentTypes;
    2522      OutputArgumentTypes = origin.OutputArgumentTypes;
    26       Examples = origin.Examples.ToArray();
     23
     24      if (origin.Examples != null)
     25        Examples = origin.Examples.Select(e => (Example)e.Clone(cloner)).ToArray();
     26
    2727      EnabledDataTypes = origin.EnabledDataTypes;
    28       this.ProblemErcOptions = cloner.Clone(origin.ProblemErcOptions);
    2928    }
    3029
    31     [Storable]
    32     public string Name { get; set; }
    33     [Storable]
    34     public string Description { get; set; }
    3530    [Storable]
    3631    public int OriginalTrainingCount { get; set; }
     
    3833    public int OriginalTestCount { get; set; }
    3934    [Storable]
    40     public int BestResult { get; set; }
     35    public double BestResult { get; set; }
    4136    [Storable]
    42     public int WorstResult { get; set; }
     37    public double WorstResult { get; set; }
    4338    [Storable]
    4439    public ExampleArgumentType[] InputArgumentTypes { get; set; }
     
    4843    [Storable]
    4944    public Example[] Examples { get; set; }
    50     [Storable]
    51     public ProblemErcOptions ProblemErcOptions { get; set; }
    5245    [Storable]
    5346    public DataTypes EnabledDataTypes { get; set; }
     
    6760    public int EvalLimit { get; set; }
    6861
    69     /// <summary>
    70     /// “Max Gens” gives the maximum number of generations in a single PushGP run.
    71     /// </summary>
    72     [Storable]
    73     public int MaxGenerations { get; set; }
    74 
    75     /// <summary>
    76     /// “Prog Eval Budget” is the maximum number of programs that will be evaluated before a run is terminated.
    77     /// </summary>
    78     [Storable]
    79     public int ProgEvalBudget { get; set; }
    80 
    8162    public override IDeepCloneable Clone(Cloner cloner) {
    8263      return new Data(this, cloner);
Note: See TracChangeset for help on using the changeset viewer.