Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/28/17 22:52:08 (8 years ago)
Author:
pkimmesw
Message:

#2665 Dynamic ErcValues, Separate Push from BenchmarkSuite Push

File:
1 edited

Legend:

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

    r14875 r14897  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char;
     3  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer;
     4
    25  public class Digits : BenchmarkSuiteDataDescriptor {
    36    private const string name = "Digits";
     
    2225        TrainingCount = 100,
    2326        TestCount = 1000,
    24         EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String,
     27        EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print,
    2528        MaxSize = 300,
    2629        EvalLimit = 600,
    2730        ErcOptions = {
    2831          ErcProbability = 0.05,
    29           IntegerErcOptions = {
    30             IsEnabled = true,
    31             Start = -10,
    32             End = 10
    33           },
    34           CharErcOptions = {
    35             IsEnabled = true,
    36             Constants = new [] { '\r' },
    37           }
     32          IntegerErcOptions = new IntegerErcOptions(
     33            new IntegerRangeErcValue(-10, 10)),
     34          CharErcOptions = new CharErcOptions(
     35            new IntegerConstantErcValue('\r'))
    3836        }
    3937      };
     
    4543        OutputArgs = output,
    4644        InputInteger = ExampleArgumentConverter.ConvertIntegers(input[0]),
    47         OutputString = output,
     45        OutputPrint = output[0],
    4846      };
    4947    }
Note: See TracChangeset for help on using the changeset viewer.