Changeset 5851 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs
- Timestamp:
- 03/28/11 20:04:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs
r5846 r5851 1 1 using System; 2 using System.Linq; 2 3 using System.Collections.Generic; 3 4 using HeuristicLab.Common; … … 26 27 public override IOperation Apply() { 27 28 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); 29 31 QualitiesParameter.ActualValue = new DoubleArray(qualities); 32 AddEvaluatedNodes(solution.Length * rows.Count()); 30 33 return base.Apply(); 31 34 } … … 41 44 SymbolicDataAnalysisTreeInterpreterParameter.ExecutionContext = context; 42 45 EstimationLimitsParameter.ExecutionContext = context; 46 EvaluatedNodesParameter.ExecutionContext = context; 43 47 44 48 double[] quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, tree, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper, problemData, rows); 45 49 AddEvaluatedNodes(tree.Length * rows.Count()); 50 46 51 SymbolicDataAnalysisTreeInterpreterParameter.ExecutionContext = null; 47 52 EstimationLimitsParameter.ExecutionContext = null; 53 EvaluatedNodesParameter.ExecutionContext = null; 48 54 49 55 return quality;
Note: See TracChangeset
for help on using the changeset viewer.