How to evaluate defect detection models