Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/15/09 14:07:34 (15 years ago)
Author:
gkronber
Message:

Fixed #740 (SimpleEvaluators in HL.GP.StructId and HL.SVM are not compatible with evaluators in HL.Modeling).

File:
1 edited

Legend:

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

    r2136 r2357  
    3030      double cnt = 0;
    3131      for (int i = 0; i < values.GetLength(0); i++) {
    32         double estimated = values[i, 0];
    33         double target = values[i, 1];
     32        double estimated = values[i, ESTIMATION_INDEX];
     33        double target = values[i, ORIGINAL_INDEX];
    3434        if (!double.IsNaN(estimated) && !double.IsInfinity(estimated) &&
    3535            !double.IsNaN(target) && !double.IsInfinity(target)) {
     
    4646        double targetDeviationTotalSumOfSquares = 0;
    4747        for (int i = 0; i < values.GetLength(0); i++) {
    48           double target = values[i, 1];
     48          double target = values[i, ORIGINAL_INDEX];
    4949          if (!double.IsNaN(target) && !double.IsInfinity(target)) {
    5050            target = target - targetMean;
Note: See TracChangeset for help on using the changeset viewer.