Changeset 14834 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Data.cs
- Timestamp:
- 04/10/17 00:27:31 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Data.cs
r14777 r14834 2 2 using System.Linq; 3 3 4 using HeuristicLab.BenchmarkSuite.ERC;5 4 using HeuristicLab.Common; 6 5 using HeuristicLab.Core; … … 16 15 17 16 public Data(Data origin, Cloner cloner) : base(origin, cloner) { 18 Name = origin.Name;19 Description = origin.Description;20 17 OriginalTrainingCount = origin.OriginalTrainingCount; 21 18 OriginalTestCount = origin.OriginalTestCount; … … 24 21 InputArgumentTypes = origin.InputArgumentTypes; 25 22 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 27 27 EnabledDataTypes = origin.EnabledDataTypes; 28 this.ProblemErcOptions = cloner.Clone(origin.ProblemErcOptions);29 28 } 30 29 31 [Storable]32 public string Name { get; set; }33 [Storable]34 public string Description { get; set; }35 30 [Storable] 36 31 public int OriginalTrainingCount { get; set; } … … 38 33 public int OriginalTestCount { get; set; } 39 34 [Storable] 40 public intBestResult { get; set; }35 public double BestResult { get; set; } 41 36 [Storable] 42 public intWorstResult { get; set; }37 public double WorstResult { get; set; } 43 38 [Storable] 44 39 public ExampleArgumentType[] InputArgumentTypes { get; set; } … … 48 43 [Storable] 49 44 public Example[] Examples { get; set; } 50 [Storable]51 public ProblemErcOptions ProblemErcOptions { get; set; }52 45 [Storable] 53 46 public DataTypes EnabledDataTypes { get; set; } … … 67 60 public int EvalLimit { get; set; } 68 61 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 81 62 public override IDeepCloneable Clone(Cloner cloner) { 82 63 return new Data(this, cloner);
Note: See TracChangeset
for help on using the changeset viewer.