Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/16/21 10:17:00 (2 years ago)
Author:
chaider
Message:

#3140

  • Moved init of variable ranges to base class
  • Changed signature order of ShapeConstrainedRegressionProblemData
  • Fixed naming in SymbolicExpressionTreeNodeEqualityComparer, SymbolicExpressionTreeBottomUpSimilarityCalculator
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs

    r18114 r18140  
    4141    protected override bool IsCommutative { get { return true; } }
    4242
    43     public bool MatchParameterValues { get; set; }
     43    public bool MatchNumericValues { get; set; }
    4444    public bool MatchVariableWeights { get; set; }
    4545
     
    7474
    7575    public static NodeMap ComputeBottomUpMapping(ISymbolicExpressionTreeNode n1, ISymbolicExpressionTreeNode n2, bool strict = false) {
    76       var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchParameterValues = strict, MatchVariableWeights = strict };
     76      var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchNumericValues = strict, MatchVariableWeights = strict };
    7777      return calculator.ComputeBottomUpMapping(n1, n2);
    7878    }
     
    211211
    212212      if (node is INumericTreeNode numNode)
    213         return MatchParameterValues ? numNode.Value.ToString(CultureInfo.InvariantCulture) : "Numeric";
     213        return MatchNumericValues ? numNode.Value.ToString(CultureInfo.InvariantCulture) : "Numeric";
    214214
    215215      if (node is VariableTreeNode variable)
Note: See TracChangeset for help on using the changeset viewer.