arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.07604cs.SE
收藏

通过减少排序误差改进基于分类器的工作量感知软件缺陷预测

Improving classifier-based effort-aware software defect prediction by reducing ranking errors

Yuchen Guo, Martin Shepperd, Ning Li

AI总结:

针对基于分类器的工作量感知软件缺陷预测中排序误差考虑不足的问题,提出设置下界避免近零误差的EA-Z排序策略,经72个数据集实验验证其性能最优,推荐搭配不平衡集成学习使用。

摘要:

研究背景与问题:软件缺陷预测利用历史数据将软件质量保证资源导向潜在有问题的组件。工作量感知(EA)缺陷预测通过考虑成本效益,对更可能存在缺陷的组件进行优先级排序。换言之,这是一个排序问题,但现有的基于分类的排序策略对排序误差的考虑十分有限。研究目标:通过聚焦排序误差,提升基于分类器的EA排序方法的性能。研究方法:我们提出一种名为EA-Z的排序分数计算策略,该策略设置了下界以避免近零排序误差。我们研究了4种主流EA排序策略与16种分类学习器,并针对EA-Z和其他4种现有策略开展了实验。实验结果:来自72个数据集的实验结果表明,在考虑全部16种学习器的情况下,就Recall@20%和Popt指标而言,EA-Z是最优的排序分数计算策略。对于特定学习器,不平衡集成学习器UBag-svm和UBst-rf搭配EA-Z可达到顶尖性能。研究结论与意义:本研究表明,减少排序误差对基于分类器的工作量感知缺陷预测具有有效性。我们推荐将EA-Z与不平衡集成学习结合使用。

英文摘要:

Context: Software defect prediction utilizes historical data to direct software quality assurance resources to potentially problematic components. Effort-aware (EA) defect prediction prioritizes more bug-like components by taking cost-effectiveness into account. In other words, it is a ranking problem, however, existing ranking strategies based on classification, give limited consideration to ranking errors. Objective: Improve the performance of classifier-based EA ranking methods by focusing on ranking errors. Method: We propose a ranking score calculation strategy called EA-Z which sets a lower bound to avoid near-zero ranking errors. We investigate four primary EA ranking strategies with 16 classification learners, and conduct the experiments for EA-Z and the other four existing strategies. Results: Experimental results from 72 data sets show EA-Z is the best ranking score calculation strategy in terms of Recall@20% and Popt when considering all 16 learners. For particular learners, imbalanced ensemble learner UBag-svm and UBst-rf achieve top performance with EA-Z. Conclusion: Our study indicates the effectiveness of reducing ranking errors for classifier-based effort-aware defect prediction. We recommend using EA-Z with imbalanced ensemble learning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑