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

    r2351 r2357  
    2525namespace HeuristicLab.Modeling {
    2626  public class SimpleConfusionMatrixEvaluator : OperatorBase {
     27    protected const int ORIGINAL_INDEX = 0;
     28    protected const int ESTIMATION_INDEX = 1;
    2729    public override string Description {
    2830      get {
     
    5557      int[,] confusionMatrix = new int[classes.Length, classes.Length];
    5658      for (int sample = 0; sample < nSamples; sample++) {
    57         double est = values[sample, 0];
    58         double origClass = values[sample, 1];
     59        double est = values[sample, ESTIMATION_INDEX];
     60        double origClass = values[sample, ORIGINAL_INDEX];
    5961        int estClassIndex = -1;
    6062        // if estimation is lower than the smallest threshold value -> estimated class is the lower class
Note: See TracChangeset for help on using the changeset viewer.