How can I add decision threshold to KNN classifier?

asked 2016-05-26 04:02:38 -0600

aee gravatar image

updated 2016-05-26 05:03:10 -0600

I am using the KNN classifier with BoW descriptor histograms. I would like to find a threshold between the matches. So that if the value is higher than a threshold consider that the classification has been done well, if not, show the best two classes of the results. How can I do that?

edit retag flag offensive close merge delete


To me it seems you need an if-loop which first checks if outputA and outputB (match scores) are above a certain value. If not compare both and take the highest?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-05-26 06:06:47 -0600 )edit