Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8634


Ignore:
Timestamp:
09/12/12 10:27:19 (12 years ago)
Author:
mkommend
Message:

#1890: Corrected copy & paste error in MeanAbsoluteErrorEvaluator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveMeanAbsoluteErrorEvaluator.cs

    r8113 r8634  
    5858      OnlineCalculatorError errorState;
    5959
    60       double mse;
     60      double mae;
    6161      if (applyLinearScaling) {
    6262        var maeCalculator = new OnlineMeanAbsoluteErrorCalculator();
    6363        CalculateWithScaling(targetValues, estimatedValues, lowerEstimationLimit, upperEstimationLimit, maeCalculator, problemData.Dataset.Rows);
    6464        errorState = maeCalculator.ErrorState;
    65         mse = maeCalculator.MeanAbsoluteError;
     65        mae = maeCalculator.MeanAbsoluteError;
    6666      } 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);
    7069      }
    7170      if (errorState != OnlineCalculatorError.None) return Double.NaN;
    72       else return mse;
     71      else return mae;
    7372    }
    7473
Note: See TracChangeset for help on using the changeset viewer.