Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/12/15 20:40:11 (9 years ago)
Author:
gkronber
Message:

#2283: added shuffling of terminal symbols to the royal pair problem to make sure that there is no bias from order of terminal symbols.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Problems.GrammaticalOptimization/Problems/RoyalPhraseSequenceProblem.cs

    r12290 r12391  
    3333    private readonly SortedSet<string>[] optimalPhrasesForPos;
    3434    public string Name { get { return "RoyalPhraseSequence"; } }
    35     public RoyalPhraseSequenceProblem(Random rand, int alphabetSize, int sequenceLen, int phraseLen = 1, int numCorrectPhrases = 1, double correctReward = 1.0, double incorrectReward = 0.0, bool phrasesAsSets = false) {
     35    public RoyalPhraseSequenceProblem(System.Random rand, int alphabetSize, int sequenceLen, int phraseLen = 1, int numCorrectPhrases = 1, double correctReward = 1.0, double incorrectReward = 0.0, bool phrasesAsSets = false) {
    3636      if (alphabetSize <= 0 || alphabetSize > 26) throw new ArgumentException();
    3737      if (sequenceLen <= 0) throw new ArgumentException();
Note: See TracChangeset for help on using the changeset viewer.