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/ReplaceSpaceWithNewline.cs

    r14875 r14897  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
    2   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
     2  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char;
     3  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer;
     4  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.String;
    35
    46  public class ReplaceSpaceWithNewline : BenchmarkSuiteDataDescriptor {
     
    2426        TrainingCount = 100,
    2527        TestCount = 1000,
    26         EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String,
     28        EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.Char | DataTypes.String | DataTypes.Print,
    2729        MaxSize = 800,
    2830        EvalLimit = 1600,
    2931        ErcOptions = {
    3032          ErcProbability = 0.05,
    31           CharErcOptions = {
    32             IsEnabled = true,
    33             Constants = new [] { ' ', '\r' },
    34             Start = 0x20,
    35             End = 0x7e
    36           },
    37           StringErcOptions = {
    38             IsEnabled = true,
    39             AllowLowercaseLetters = true,
    40             AllowUppercaseLetters = false,
    41             AllowSpace = true,
    42             SpaceProbability = 0.2
    43           }
     33          CharErcOptions = new CharErcOptions(
     34            new IntegerConstantErcValue(' ', '\r'),
     35            new IntegerRangeErcValue(0x20, 0x7e)),
     36          StringErcOptions = new StringErcOptions(
     37            new StringRandomErcValue {
     38              IsEnabled = true,
     39              AllowLowercaseLetters = true,
     40              AllowUppercaseLetters = false,
     41              AllowSpace = true,
     42              SpaceProbability = 0.2
     43            })
    4444        }
    4545      };
     
    5151        OutputArgs = output,
    5252        InputString = input,
    53         OutputString = new[] { output[0] },
     53        OutputPrint = output[0],
    5454        OutputInteger = ExampleArgumentConverter.ConvertIntegers(output[1]),
    5555      };
Note: See TracChangeset for help on using the changeset viewer.