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/XWordLines.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 XWordLines : BenchmarkSuiteDataDescriptor {
    36    private const string name = "X-Word Lines";
     
    2225        TrainingCount = 150,
    2326        TestCount = 2000,
    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 = 800,
    2629        EvalLimit = 1600,
    2730        ErcOptions = {
    2831          ErcProbability = 0.05,
    29           CharErcOptions = {
    30             IsEnabled = true,
    31             Constants = new [] { ' ', '\r' }
    32           }
     32          CharErcOptions = new CharErcOptions(
     33            new IntegerConstantErcValue(' ', '\r')),
    3334        }
    3435      };
     
    3940        InputArgs = input,
    4041        OutputArgs = output,
    41         InputInteger = ExampleArgumentConverter.ConvertIntegers(input[0]),
    42         InputString = new[] { input[1] },
    43         OutputString = output,
     42        InputInteger = ExampleArgumentConverter.ConvertIntegers(input[1]),
     43        InputString = new[] { input[0] },
     44        OutputPrint = output[0],
    4445      };
    4546    }
Note: See TracChangeset for help on using the changeset viewer.