Changeset 5319 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification/3.3/Symbolic/SymbolicClassificationSolution.cs
- Timestamp:
- 01/18/11 12:43:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification/3.3/Symbolic/SymbolicClassificationSolution.cs
r4722 r5319 122 122 if (estimatedTarget.Key > lowerThreshold && estimatedTarget.Key < actualThreshold) 123 123 //true positive 124 classificationScore += ProblemData.MisclassificationMatrix[i - 1, i - 1] / classInstances[i - 1];124 classificationScore += ProblemData.MisclassificationMatrix[i - 1, i - 1]; 125 125 else 126 126 //false negative 127 classificationScore += ProblemData.MisclassificationMatrix[i, i - 1] / classInstances[i - 1];127 classificationScore += ProblemData.MisclassificationMatrix[i, i - 1]; 128 128 } 129 129 //all negatives 130 130 else { 131 131 if (estimatedTarget.Key > lowerThreshold && estimatedTarget.Key < actualThreshold) 132 classificationScore += ProblemData.MisclassificationMatrix[i - 1, i] / classInstances[i];132 classificationScore += ProblemData.MisclassificationMatrix[i - 1, i]; 133 133 else 134 134 //true negative, consider only upper class 135 classificationScore += ProblemData.MisclassificationMatrix[i, i] / classInstances[i];135 classificationScore += ProblemData.MisclassificationMatrix[i, i]; 136 136 } 137 137 }
Note: See TracChangeset
for help on using the changeset viewer.