Changeset 8554 for trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators
- Timestamp:
- 09/03/12 13:27:40 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/branches/DatasetFeatureCorrelation/HeuristicLab.Problems.DataAnalysis (added) merged: 8035,8038,8276,8294,8318,8483,8492,8526,8529,8538
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/AccuracyMaximizationThresholdCalculator.cs
r8126 r8554 85 85 //all positives 86 86 if (pair.TargetClassValue.IsAlmost(classValues[i - 1])) { 87 if (pair.EstimatedValue > lowerThreshold && pair.EstimatedValue < actualThreshold)87 if (pair.EstimatedValue > lowerThreshold && pair.EstimatedValue <= actualThreshold) 88 88 //true positive 89 classificationScore += problemData.GetClassificationPenalty( classValues[i - 1], classValues[i - 1]);89 classificationScore += problemData.GetClassificationPenalty(pair.TargetClassValue, pair.TargetClassValue); 90 90 else 91 91 //false negative 92 classificationScore += problemData.GetClassificationPenalty( classValues[i], classValues[i - 1]);92 classificationScore += problemData.GetClassificationPenalty(pair.TargetClassValue, classValues[i]); 93 93 } 94 94 //all negatives 95 95 else { 96 if (pair.EstimatedValue > lowerThreshold && pair.EstimatedValue < actualThreshold)96 if (pair.EstimatedValue > lowerThreshold && pair.EstimatedValue <= actualThreshold) 97 97 //false positive 98 classificationScore += problemData.GetClassificationPenalty( classValues[i - 1], classValues[i]);98 classificationScore += problemData.GetClassificationPenalty(pair.TargetClassValue, classValues[i - 1]); 99 99 else 100 100 //true negative, consider only upper class 101 classificationScore += problemData.GetClassificationPenalty( classValues[i], classValues[i]);101 classificationScore += problemData.GetClassificationPenalty(pair.TargetClassValue, pair.TargetClassValue); 102 102 } 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.