A search-based training algorithm for cost-aware defect prediction