Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/17 13:13:04 (5 years ago)
Author:
bburlacu
Message:

#2288: Sync with trunk + Minor refactor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks/3.3/SymbolicDataAnalysisVariableImpactsAnalyzer.cs

    r13868 r15421  
    5858    #endregion
    5959
    60     private SymbolicDataAnalysisExpressionTreeSimplifier simplifier;
    6160    private SymbolicRegressionSolutionImpactValuesCalculator impactsCalculator;
    6261
     
    136135
    137136      impactsCalculator = new SymbolicRegressionSolutionImpactValuesCalculator();
    138       simplifier = new SymbolicDataAnalysisExpressionTreeSimplifier();
    139137    }
    140138
     
    145143    private void AfterDeserialization() {
    146144      impactsCalculator = new SymbolicRegressionSolutionImpactValuesCalculator();
    147       simplifier = new SymbolicDataAnalysisExpressionTreeSimplifier();
    148145
    149146      if (!Parameters.ContainsKey(EvaluatorParameterName))
     
    154151        : base(original, cloner) {
    155152      impactsCalculator = new SymbolicRegressionSolutionImpactValuesCalculator();
    156       simplifier = new SymbolicDataAnalysisExpressionTreeSimplifier();
    157153    }
    158154
     
    210206      var bestTrees = trees.Take(nTrees).Select(x => (ISymbolicExpressionTree)x.Clone()).ToList();
    211207      // simplify trees before doing anything else
    212       var simplifiedTrees = bestTrees.Select(x => simplifier.Simplify(x)).ToList();
     208      var simplifiedTrees = bestTrees.Select(x => TreeSimplifier.Simplify(x)).ToList();
    213209
    214210      if (optimizeConstants) {
Note: See TracChangeset for help on using the changeset viewer.