Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5417


Ignore:
Timestamp:
02/03/11 23:02:05 (14 years ago)
Author:
mkommend
Message:

Adapted RocCurvesView to treat binary classification problems differently (ticket #1289).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification.Views/3.3/RocCurvesView.cs

    r4651 r5417  
    123123          for (double lowerThreshold = minThreshold; lowerThreshold < maxThreshold; lowerThreshold += thresholdIncrement) {
    124124            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
    125128              int truePositives = 0;
    126129              int falsePositives = 0;
     
    142145              }
    143146            }
     147            //only adapt upper threshold for binary classification problems and upper class prediction             
     148            if (classValues.Count == 2 && classValue == classValues[0]) lowerThreshold = double.PositiveInfinity;
    144149          }
    145150
Note: See TracChangeset for help on using the changeset viewer.