Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/22/18 13:46:16 (6 years ago)
Author:
gkronber
Message:

#2886 made a few comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/GrammarEnumeration/Grammar.cs

    r15803 r15806  
    204204        for (int i = 0; i < isFactorRemaining.Length; i++) {
    205205          if (!isFactorRemaining[i]) continue;
    206           if (isFactorRemaining.Count(b => b) <= 2) break; // Until we have constants, we can't cancel out all terms.
     206          if (isFactorRemaining.Count() <= 2) break; // Until we have constants, we can't cancel out all terms.
    207207
    208208          var currFactor = childHashes[i];
     
    241241      }
    242242
    243       return $"[{hashesArray.Aggregate(operatorSym.StringRepresentation, (result, ti) => string.Concat(result, " ° ", ti))}]";
     243      return $"[{hashesArray.Aggregate(operatorSym.StringRepresentation, (result, ti) => string.Concat(result, " ° ", ti))}]";      // TODO: use string join instead of string.Concat
    244244    }
    245245
     
    268268      Debug.Assert(sentence.All(s => s is TerminalSymbol), "Trying to evaluate symbol sequence with nonterminalsymbols!");
    269269
    270       symbolicExpressionGrammar.ConfigureAsDefaultRegressionGrammar();
     270      symbolicExpressionGrammar.ConfigureAsDefaultRegressionGrammar();     // TODO: not necessary to call this for each sentence
    271271
    272272      var rootNode = rootSy.CreateTreeNode();
Note: See TracChangeset for help on using the changeset viewer.