Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/28/11 20:04:51 (14 years ago)
Author:
gkronber
Message:

#1411 added evaluated nodes parameter to symbolic data analysis evaluators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs

    r5846 r5851  
    11using System;
     2using System.Linq;
    23using System.Collections.Generic;
    34using HeuristicLab.Common;
     
    2627    public override IOperation Apply() {
    2728      IEnumerable<int> rows = GenerateRowsToEvaluate();
    28       double[] qualities = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper, ProblemDataParameter.ActualValue, rows);
     29      var solution = SymbolicExpressionTreeParameter.ActualValue;
     30      double[] qualities = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, solution, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper, ProblemDataParameter.ActualValue, rows);
    2931      QualitiesParameter.ActualValue = new DoubleArray(qualities);
     32      AddEvaluatedNodes(solution.Length * rows.Count());
    3033      return base.Apply();
    3134    }
     
    4144      SymbolicDataAnalysisTreeInterpreterParameter.ExecutionContext = context;
    4245      EstimationLimitsParameter.ExecutionContext = context;
     46      EvaluatedNodesParameter.ExecutionContext = context;
    4347
    4448      double[] quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, tree, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper, problemData, rows);
    45 
     49      AddEvaluatedNodes(tree.Length * rows.Count());
     50     
    4651      SymbolicDataAnalysisTreeInterpreterParameter.ExecutionContext = null;
    4752      EstimationLimitsParameter.ExecutionContext = null;
     53      EvaluatedNodesParameter.ExecutionContext = null;
    4854
    4955      return quality;
Note: See TracChangeset for help on using the changeset viewer.