Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/17 01:15:25 (8 years ago)
Author:
pkimmesw
Message:

#2665 BenchmarkSuite, all examples, partially tested, VectorExpressions added

File:
1 edited

Legend:

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

    r14834 r14875  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
     3
    24  public class NumberIO : BenchmarkSuiteDataDescriptor {
    35    private const string name = "NumberIO";
     
    1113    protected override int OutputArgumentCount { get { return 1; } }
    1214
    13     public override Data CreateProblemData() {
    14       return new Data {
     15    public override ProblemData CreateProblemData() {
     16      return new ProblemData {
    1517        Name = Name,
    1618        Description = Description,
     
    2022        InputArgumentTypes = new[] { ExampleArgumentType.Float, ExampleArgumentType.Integer },
    2123        OutputArgumentTypes = new[] { ExampleArgumentType.Float },
    22         OriginalTrainingCount = 25,
    23         OriginalTestCount = 1000,
     24        TrainingCount = 25,
     25        TestCount = 1000,
    2426        EnabledDataTypes = DataTypes.Integer | DataTypes.Float,
    2527        EvalLimit = 200,
    2628        MaxSize = 200,
     29        ErcOptions = {
     30          ErcProbability = 0.05,
     31          IntegerErcOptions = {
     32            IsEnabled = true,
     33            Start = -100,
     34            End = 100
     35          },
     36          FloatErcOptions = {
     37            IsEnabled = true,
     38            Start = -100.0,
     39            End = 100.0
     40          }
     41        }
    2742      };
    2843    }
     
    3348        OutputArgs = output,
    3449        InputFloat = ExampleArgumentConverter.ConvertDoubles(input[0]),
    35         InputInt = ExampleArgumentConverter.ConvertIntegers(input[1]),
     50        InputInteger = ExampleArgumentConverter.ConvertIntegers(input[1]),
    3651        OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0])
    3752      };
Note: See TracChangeset for help on using the changeset viewer.