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

    r14875 r14897  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
     2  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char;
     3  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer;
     4  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.String;
     5
    26  public class PigLatin : BenchmarkSuiteDataDescriptor {
    37    private const string name = "Pig Latin";
     
    2226        TrainingCount = 200,
    2327        TestCount = 1000,
    24         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,
    2529        MaxSize = 1000,
    2630        EvalLimit = 2000,
    2731        ErcOptions = {
    2832          ErcProbability = 0.05,
    29           CharErcOptions = {
    30             IsEnabled = true,
    31             Constants = new [] { ' ', 'a', 'e', 'i', 'o', 'u' },
    32             Start = 0x20,
    33             End = 0x7e
    34           },
    35           StringErcOptions = {
    36             IsEnabled = true,
    37             Constants = new [] { "ay", "aeiou" },
    38             AllowLowercaseLetters = true,
    39             AllowUppercaseLetters = false,
    40             AllowSpace = true,
    41             SpaceProbability = 0.2,
    42           }
     33          CharErcOptions = new CharErcOptions(
     34            new IntegerConstantErcValue(' ', 'a', 'e', 'i', 'o', 'u'),
     35            new IntegerRangeErcValue(0x20, 0x7e)),
     36          StringErcOptions = new StringErcOptions(
     37            new StringConstantErcValue("ay", "aeiou"),
     38            new StringRandomErcValue {
     39              IsEnabled = true,
     40              AllowLowercaseLetters = true,
     41              AllowUppercaseLetters = false,
     42              AllowSpace = true,
     43              SpaceProbability = 0.2,
     44          })
    4345        }
    4446      };
     
    5052        OutputArgs = output,
    5153        InputString = input,
    52         OutputString = output,
     54        OutputPrint = output[0],
    5355      };
    5456    }
Note: See TracChangeset for help on using the changeset viewer.