Changeset 5962


Ignore:
Timestamp:
04/06/11 10:45:21 (8 years ago)
Author:
mkommend
Message:

#1418: Fixed OnlineNormalizedMeanSquaredErrorCalculator and added results description in RegressionSolution.

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionSolution.cs

    r5942 r5962  
    107107      Add(new Result(TrainingRelativeErrorResultName, "Average of the relative errors of the model output and the actual values on the training partition", new PercentValue()));
    108108      Add(new Result(TestRelativeErrorResultName, "Average of the relative errors of the model output and the actual values on the test partition", new PercentValue()));
    109       Add(new Result(TrainingNormalizedMeanSquaredErrorResultName, "", new DoubleValue()));
    110       Add(new Result(TestNormalizedMeanSquaredErrorResultName, "", new DoubleValue()));
     109      Add(new Result(TrainingNormalizedMeanSquaredErrorResultName, "Normalized mean of squared errors of the model on the training partition", new DoubleValue()));
     110      Add(new Result(TestNormalizedMeanSquaredErrorResultName, "Normalized mean of squared errors of the model on the test partition", new DoubleValue()));
    111111
    112112      RecalculateResults();
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineNormalizedMeanSquaredErrorCalculator.cs

    r5945 r5962  
    6868      OnlineNormalizedMeanSquaredErrorCalculator normalizedMSECalculator = new OnlineNormalizedMeanSquaredErrorCalculator();
    6969
     70      //needed because otherwise the normalizedMSECalculator is in ErrorState.InsufficientValuesAdded
     71      if (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) {
     72        double estimated = secondEnumerator.Current;
     73        double original = firstEnumerator.Current;
     74        normalizedMSECalculator.Add(original, estimated);
     75      }
     76
    7077      // always move forward both enumerators (do not use short-circuit evaluation!)
    7178      while (firstEnumerator.MoveNext() & secondEnumerator.MoveNext()) {
Note: See TracChangeset for help on using the changeset viewer.