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

    r14875 r14897  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
    2   using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;
     2  using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer;
    33
    44  public class StringLengthsBackwards : BenchmarkSuiteDataDescriptor {
    55    private const string name = "String Length Backwards";
    6     private const string fileName = "StringLengthBackwards.csv";
     6    private const string fileName = "StringLengthsBackwards.csv";
    77    private const string description = "Given a vector of strings, print the length of each string in the vector starting with the last and ending with the first.";
    88
     
    2424        TrainingCount = 100,
    2525        TestCount = 1000,
    26         EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.StringVector,
     26        EnabledDataTypes = DataTypes.Exec | DataTypes.Integer | DataTypes.Boolean | DataTypes.String | DataTypes.StringVector | DataTypes.Print,
    2727        MaxSize = 300,
    2828        EvalLimit = 600,
    2929        ErcOptions = {
    3030          ErcProbability = 0.05,
    31           IntegerErcOptions = {
    32             IsEnabled = true,
    33             Start = -100,
    34             End = 100
    35           }
     31          IntegerErcOptions = new IntegerErcOptions(
     32            new IntegerRangeErcValue(-100, 100))
    3633        }
    3734      };
     
    4340        OutputArgs = output,
    4441        InputStringVector = new[] { ExampleArgumentConverter.ConvertStringVector(input[0]) },
    45         OutputString = output,
     42        OutputPrint = output[0],
    4643      };
    4744    }
Note: See TracChangeset for help on using the changeset viewer.