Changeset 5417
- Timestamp:
- 02/03/11 23:02:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification.Views/3.3/RocCurvesView.cs
r4651 r5417 123 123 for (double lowerThreshold = minThreshold; lowerThreshold < maxThreshold; lowerThreshold += thresholdIncrement) { 124 124 for (double upperThreshold = lowerThreshold + thresholdIncrement; upperThreshold < maxThreshold; upperThreshold += thresholdIncrement) { 125 //only adapt lower threshold for binary classification problems and upper class prediction 126 if (classValues.Count == 2 && classValue == classValues[1]) upperThreshold = double.PositiveInfinity; 127 125 128 int truePositives = 0; 126 129 int falsePositives = 0; … … 142 145 } 143 146 } 147 //only adapt upper threshold for binary classification problems and upper class prediction 148 if (classValues.Count == 2 && classValue == classValues[0]) lowerThreshold = double.PositiveInfinity; 144 149 } 145 150
Note: See TracChangeset
for help on using the changeset viewer.