Ask Your Question
3

How to control the precision vs. recall rate of a classifier?

asked 2012-07-11 02:01:47 -0600

Niu ZhiHeng gravatar image

The ML methods in OpenCV usually give an overall balanced error rate for both positive and negative samples.

For some applications, a very high recall rate with medium precision is needed. In such case, what can be done?

Your ideas and suggestions are highly welcome.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2012-07-20 12:09:25 -0600

The answer depends on a particular classifier that you want to use.

For example, if you use a classifier based on decision trees you can use priors parameter to adjust weights of classes (see CvDTreeParams).

In case of SVM you can use distance d to the separating hyper-plane (see CvSVM::predict). This distance d corresponds to a confidence of the classifier. By default the decision boundary is d = 0 but you can manually change it to d = c, where c is a threshold (positive or negative). By varying c you shift the separating hyper-plane in a desired direction.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-11 02:01:47 -0600

Seen: 1,194 times

Last updated: Jul 20 '12