Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/15/09 12:36:04 (15 years ago)
Author:
gkronber
Message:

Implemented #782 (Additional model quality metrics: Pearson product-moment correlation coefficient and Spearman's rank correlation coefficient)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Modeling/3.2/SimpleR2Evaluator.cs

    r2357 r2428  
    4848          double target = values[i, ORIGINAL_INDEX];
    4949          if (!double.IsNaN(target) && !double.IsInfinity(target)) {
    50             target = target - targetMean;
    51             target = target * target;
    52             targetDeviationTotalSumOfSquares += target;
     50            double targetDiff = target - targetMean;
     51            targetDeviationTotalSumOfSquares += targetDiff * targetDiff;
    5352          }
    5453        }
Note: See TracChangeset for help on using the changeset viewer.