Ignore:
Timestamp:
04/10/17 00:27:31 (2 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/CountOdds.cs

    r14777 r14834  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
    2   using HeuristicLab.BenchmarkSuite.ERC;
    3   using HeuristicLab.Data;
    42
    53  public class CountOdds : BenchmarkSuiteDataDescriptor {
     
    75    private const string fileName = "CountOdds.csv";
    86    private const string description = "";
    9     private readonly ExampleArgumentType[] inputArgumentTypes = { ExampleArgumentType.IntegerCollection };
    10     private readonly ExampleArgumentType[] outputArgumentTypes = { ExampleArgumentType.Integer };
    117
    12     private readonly DataTypes enabledDataTypeses = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.IntegerVector;
    13     private readonly ProblemErcOptions problemErcOptions = new ProblemErcOptions {
    14       IntegerErcRange = new ErcOptionRange<IntValue>(
    15         new IntValue(-1000),
    16         new IntValue(1000),
    17         new IntValue(0),
    18         new IntValue(1),
    19         new IntValue(2))
    20     };
    21 
     8    protected override string FileName { get { return fileName; } }
    229    public override string Name { get { return name; } }
    2310    public override string Description { get { return description; } }
    24     protected override string FileName { get { return fileName; } }
    25     public override ExampleArgumentType[] InputArgumentTypes { get { return inputArgumentTypes; } }
    26     public override ExampleArgumentType[] OutputArgumentTypes { get { return outputArgumentTypes; } }
    27     public override int OriginalTrainingCount { get { return 200; } }
    28     public override int OriginalTestCount { get { return 2000; } }
    29     public override int BestResult { get { return 0; } }
    30     public override int WorstResult { get { return 50; } }
    31     public override ProblemErcOptions ProblemErcOptions { get { return this.problemErcOptions; } }
    32     public override DataTypes EnabledDataTypes { get { return this.enabledDataTypeses; } }
    33     public override int MaxSize { get { return 500; } }
    34     public override int EvalLimit { get { return 1500; } }
    35     public override int MaxGenerations { get { return 300; } }
    36     public override int ProgEvalBudget { get { return 60000000; } }
     11    protected override int InputArgumentCount { get { return 1; } }
     12    protected override int OutputArgumentCount { get { return 1; } }
    3713
    38     public override Example ParseExample(string[] input, string[] output) {
     14    public override Data CreateProblemData() {
     15      return new Data {
     16        Name = Name,
     17        Description = Description,
     18        Examples = CloneExamples(),
     19        BestResult = 0,
     20        WorstResult = 50,
     21        InputArgumentTypes = new[] { ExampleArgumentType.IntegerCollection },
     22        OutputArgumentTypes = new[] { ExampleArgumentType.Integer },
     23        OriginalTestCount = 2000,
     24        OriginalTrainingCount = 200,
     25        EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.IntegerVector,
     26        EvalLimit = 1500,
     27        MaxSize = 500,
     28      };
     29    }
     30
     31    protected override Example ParseExample(string[] input, string[] output) {
    3932      return new Example {
    4033        InputArgs = input,
Note: See TracChangeset for help on using the changeset viewer.