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/SimpleAccuracyEvaluator.cs

    r2351 r2357  
    5151
    5252      for (int sample = 0; sample < nSamples; sample++) {
    53         double est = values[sample, 0];
    54         double origClass = values[sample, 1];
     53        double est = values[sample, ESTIMATION_INDEX];
     54        double origClass = values[sample, ORIGINAL_INDEX];
    5555        double estClass = double.NaN;
    5656        // if estimation is lower than the smallest threshold value -> estimated class is the lower class
     
    7575      int n = values.GetLength(0);
    7676      double[] original = new double[n];
    77       for (int i = 0; i < n; i++) original[i] = values[i, 1];
     77      for (int i = 0; i < n; i++) original[i] = values[i, ORIGINAL_INDEX];
    7878      return original.OrderBy(x => x).Distinct().ToArray();
    7979    }
Note: See TracChangeset for help on using the changeset viewer.