Free cookie consent management tool by TermsFeed Policy Generator

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.