Changeset 14744 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
- Timestamp:
- 03/10/17 21:42:09 (8 years ago)
- 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 3 3 using System.Text; 4 4 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 6 7 [StorableClass] 5 8 public class Checksum : BenchmarkSuiteDataDescriptor { 6 9 private const string name = "Checksum"; 7 10 private const string fileName = "Checksum.csv"; 8 11 private const string description = ""; 12 public Checksum() { } 13 14 [StorableConstructor] 15 public Checksum(bool deserializing) : base(deserializing) { } 9 16 10 17 public override string Name { get { return name; } } 11 p ublicoverride string FileName { get { return fileName; } }18 protected override string FileName { get { return fileName; } } 12 19 public override string Description { get { return description; } } 13 p rotectedoverride int InputArgumentCount { get { return 1; } }14 p rotectedoverride int OutputArgumentCount { get { return 1; } }15 p rotectedoverride int OriginalTrainingCount { get { return 228; } }16 p rotectedoverride int OriginalTestCount { get { return 1254; } }17 p rotectedoverride int BestResult { get { return 0; } }18 p rotectedoverride 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; } } 19 26 20 27 public override Example ParseExample(string[] input, string[] output) { -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CountOdds.cs
r14727 r14744 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 2 3 4 [StorableClass] 3 5 public class CountOdds : BenchmarkSuiteDataDescriptor { 4 6 private const string name = "Count Odds"; … … 6 8 private const string description = ""; 7 9 10 public CountOdds() { } 11 12 [StorableConstructor] 13 public CountOdds(bool deserializing) : base(deserializing) { } 14 8 15 public override string Name { get { return name; } } 9 public override string FileName { get { return fileName; } }10 16 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; } } 17 24 18 25 public override Example ParseExample(string[] input, string[] output) { -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Example.cs
r14733 r14744 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using System; 2 3 3 4 using HeuristicLab.Common; … … 23 24 24 25 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); 27 28 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); 31 32 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); 35 36 } 36 37
Note: See TracChangeset
for help on using the changeset viewer.