Changeset 5894 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs
- Timestamp:
- 03/30/11 18:04:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectivePearsonRSquaredTreeSizeEvaluator.cs
r5851 r5894 37 37 IEnumerable<double> estimatedValues = interpreter.GetSymbolicExpressionTreeValues(solution, problemData.Dataset, rows); 38 38 IEnumerable<double> originalValues = problemData.Dataset.GetEnumeratedVariableValues(problemData.TargetVariable, rows); 39 double r2 = OnlinePearsonsRSquaredEvaluator.Calculate(estimatedValues, originalValues); 40 return new double[] { double.IsNaN(r2) ? 0.0 : r2, solution.Length }; 39 OnlineEvaluatorError errorState; 40 double r2 = OnlinePearsonsRSquaredEvaluator.Calculate(estimatedValues, originalValues, out errorState); 41 if (errorState != OnlineEvaluatorError.None) r2 = 0.0; 42 return new double[] { r2, solution.Length }; 43 41 44 } 42 45
Note: See TracChangeset
for help on using the changeset viewer.