Free cookie consent management tool by TermsFeed Policy Generator

Changeset 484


Ignore:
Timestamp:
08/10/08 15:49:01 (16 years ago)
Author:
gkronber
Message:

fixed a bug where AccuracyEvaluator set the value of the discrimination function instead of the predicted class value (ticket #242)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/Evaluation/AccuracyEvaluator.cs

    r482 r484  
    7373        double est = GetEstimatedValue(sample);
    7474        double origClass = GetOriginalValue(sample);
    75         SetOriginalValue(sample, est);
    7675        double estClass = double.NaN;
    7776        // if estimation is lower than the smallest threshold value -> estimated class is the lower class
     
    8887          }
    8988        }
     89        SetOriginalValue(sample, estClass);
    9090        if(Math.Abs(estClass - origClass) < EPSILON) nCorrect++;
    9191      }
Note: See TracChangeset for help on using the changeset viewer.