Changeset 5851 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator.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/SingleObjective/SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator.cs
r5809 r5851 20 20 #endregion 21 21 22 using System.Linq; 22 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; … … 46 47 public override IOperation Apply() { 47 48 IEnumerable<int> rows = GenerateRowsToEvaluate(); 48 double quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, SymbolicExpressionTreeParameter.ActualValue, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper, ProblemDataParameter.ActualValue, rows); 49 var solution = SymbolicExpressionTreeParameter.ActualValue; 50 double quality = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, solution, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper, ProblemDataParameter.ActualValue, rows); 49 51 QualityParameter.ActualValue = new DoubleValue(quality); 52 AddEvaluatedNodes(solution.Length * rows.Count()); 50 53 return base.Apply(); 51 54 } … … 61 64 SymbolicDataAnalysisTreeInterpreterParameter.ExecutionContext = context; 62 65 EstimationLimitsParameter.ExecutionContext = context; 66 EvaluatedNodesParameter.ExecutionContext = context; 63 67 64 68 double mse = Calculate(SymbolicDataAnalysisTreeInterpreterParameter.ActualValue, tree, EstimationLimitsParameter.ActualValue.Lower, EstimationLimitsParameter.ActualValue.Upper, problemData, rows); 69 AddEvaluatedNodes(tree.Length * rows.Count()); 65 70 66 71 SymbolicDataAnalysisTreeInterpreterParameter.ExecutionContext = null; 67 72 EstimationLimitsParameter.ExecutionContext = null; 73 EvaluatedNodesParameter.ExecutionContext = null; 68 74 69 75 return mse;
Note: See TracChangeset
for help on using the changeset viewer.