Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/18 17:59:50 (6 years ago)
Author:
bburlacu
Message:

#2886: Remove redundant EvaluatePhrase method in the Grammar class and fix compilation of tests.

File:
1 edited

Legend:

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

    r16053 r16056  
    278278    }
    279279
    280     public double EvaluatePhrase(SymbolList s, IRegressionProblemData problemData, bool optimizeConstants, int iterations, bool applyLinearScaling) {
    281       SymbolicExpressionTree tree = ParseSymbolicExpressionTree(s);
    282 
    283       return RSquaredEvaluator.Evaluate(problemData, tree, optimizeConstants, iterations, applyLinearScaling);
    284     }
    285 
    286280    #region Parse to SymbolicExpressionTree
    287 
    288281    public string ToInfixString(SymbolList sentence) {
    289282      Debug.Assert(sentence.Any(), "Trying to evaluate empty sentence!");
Note: See TracChangeset for help on using the changeset viewer.