covartech / PRT

Pattern Recognition Toolbox for MATLAB
http://covartech.github.io/
MIT License
144 stars 70 forks source link

prtDecisionBinaryMinPe chooses a threshold right at the hairy edge #63

Closed peterTorrione closed 6 years ago

peterTorrione commented 6 years ago

Consider a two-class problem with 5 examples from each class, sorted so the 5 H0's are first.

Now consider a classifier run on that, that gives outputs like:

    [1 2 3 4 5 101 102 103 104 105] 

Right now, our prtDecisionMinPe chooses 101 as the threshold. This is fine for here, but is no good in cross-validation. The right threshold is probably mean([5, 101])