Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/11 12:43:21 (13 years ago)
Author:
mkommend
Message:

Corrected calculation of thresholds in SymbolicClassificationSolutions (ticket #1383).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification/3.3/Symbolic/SymbolicClassificationSolution.cs

    r4722 r5319  
    122122              if (estimatedTarget.Key > lowerThreshold && estimatedTarget.Key < actualThreshold)
    123123                //true positive
    124                 classificationScore += ProblemData.MisclassificationMatrix[i - 1, i - 1] / classInstances[i - 1];
     124                classificationScore += ProblemData.MisclassificationMatrix[i - 1, i - 1];
    125125              else
    126126                //false negative
    127                 classificationScore += ProblemData.MisclassificationMatrix[i, i - 1] / classInstances[i - 1];
     127                classificationScore += ProblemData.MisclassificationMatrix[i, i - 1];
    128128            }
    129129              //all negatives
    130130            else {
    131131              if (estimatedTarget.Key > lowerThreshold && estimatedTarget.Key < actualThreshold)
    132                 classificationScore += ProblemData.MisclassificationMatrix[i - 1, i] / classInstances[i];
     132                classificationScore += ProblemData.MisclassificationMatrix[i - 1, i];
    133133              else
    134134                //true negative, consider only upper class
    135                 classificationScore += ProblemData.MisclassificationMatrix[i, i] / classInstances[i];
     135                classificationScore += ProblemData.MisclassificationMatrix[i, i];
    136136            }
    137137          }
Note: See TracChangeset for help on using the changeset viewer.