Changeset 8634
- Timestamp:
- 09/12/12 10:27:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveMeanAbsoluteErrorEvaluator.cs
r8113 r8634 58 58 OnlineCalculatorError errorState; 59 59 60 double m se;60 double mae; 61 61 if (applyLinearScaling) { 62 62 var maeCalculator = new OnlineMeanAbsoluteErrorCalculator(); 63 63 CalculateWithScaling(targetValues, estimatedValues, lowerEstimationLimit, upperEstimationLimit, maeCalculator, problemData.Dataset.Rows); 64 64 errorState = maeCalculator.ErrorState; 65 m se = maeCalculator.MeanAbsoluteError;65 mae = maeCalculator.MeanAbsoluteError; 66 66 } else { 67 IEnumerable<double> boundedEstimatedValues = estimatedValues.LimitToRange(lowerEstimationLimit, 68 upperEstimationLimit); 69 mse = OnlineMeanSquaredErrorCalculator.Calculate(targetValues, boundedEstimatedValues, out errorState); 67 IEnumerable<double> boundedEstimatedValues = estimatedValues.LimitToRange(lowerEstimationLimit, upperEstimationLimit); 68 mae = OnlineMeanAbsoluteErrorCalculator.Calculate(targetValues, boundedEstimatedValues, out errorState); 70 69 } 71 70 if (errorState != OnlineCalculatorError.None) return Double.NaN; 72 else return m se;71 else return mae; 73 72 } 74 73
Note: See TracChangeset
for help on using the changeset viewer.