1
$\begingroup$

For some binary image classification problems having close to 100% precision is super important and recall is much less important.

What are best practices for maximizing precision? Setting the probability threshold for model.predict() greater than 0.5 seems like a reasonable approach.

Are there any other recommended methods?

$\endgroup$
1
  • $\begingroup$ Yes, it is the only way given that you have the best possible model $\endgroup$ Apr 12, 2019 at 22:08

1 Answer 1

2
$\begingroup$

If you are exploring the best hyper-parameter combination that maximizes precision you could try GridsearchCV along with KerasClassifier. You create a wrapper of your model and use it as the estimator of the GridsearchCV method. Also, since you want to maximize precision, you would have to set the scorer parameter to precision. After that you are going to have to set the hyper-parameter space that you would like to explore and finally run the experiment.

Please bear in mind that this approach is computationally expensive. If your dataset is very large, a space of n > 2 (i.e 2-d), would need a cluster so as to produce results in a timely manner.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.