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

多核缺陷对缺陷预测的影响:对19个Apache项目的研究

The Impact of Dormant Defects on Defect Prediction: a Study of 19 Apache Projects

Davide Falessi, Aalok Ahluwalia, Massimiliano Di Penta

摘要:

缺陷预测模型可以有益于确定测试、分析或代码评审活动的优先级,并且已经成为学术界大量努力的主题,以及工业环境中的一些应用。创建缺陷预测模型的一个必要前提是项目历史中缺陷数据的可用性。如果该数据是有噪声的,则所得到的缺陷预测模型可能是不可靠的。缺陷数据集的噪声的原因之一是“休眠缺陷”的存在,即,的缺陷,发现了几个版本后,他们的介绍。这可能会导致类被标记为无缺陷,而实际上并非如此,因此是“打鼾”。在本文中,我们研究了打鼾对分类器准确性的影响以及一种可能的对策的有效性,即,从训练集中删除最近的数据。我们分析了15个机器学习缺陷预测分类器的准确性,数据来自Apache生态系统的19个开源项目的4,000多个缺陷和600个版本。我们的研究结果表明,平均而言,跨项目:(i)休眠缺陷的存在降低了缺陷预测分类器的召回率,(ii)从训练集中删除在最后一个版本中被标记为无缺陷的类显着提高了分类器的准确性。总之,本文提供了关于如何通过减轻休眠缺陷对缺陷预测的负面影响来创建缺陷数据集的见解。

英文摘要:

Defect prediction models can be beneficial to prioritize testing, analysis, or code review activities, and has been the subject of a substantial effort in academia, and some applications in industrial contexts. A necessary precondition when creating a defect prediction model is the availability of defect data from the history of projects. If this data is noisy, the resulting defect prediction model could result to be unreliable. One of the causes of noise for defect datasets is the presence of "dormant defects", i.e., of defects discovered several releases after their introduction. This can cause a class to be labeled as defect-free while it is not, and is, therefore "snoring". In this paper, we investigate the impact of snoring on classifiers' accuracy and the effectiveness of a possible countermeasure, i.e., dropping too recent data from a training set. We analyze the accuracy of 15 machine learning defect prediction classifiers, on data from more than 4,000 defects and 600 releases of 19 open source projects from the Apache ecosystem. Our results show that on average across projects: (i) the presence of dormant defects decreases the recall of defect prediction classifiers, and (ii) removing from the training set the classes that in the last release are labeled as not defective significantly improves the accuracy of the classifiers. In summary, this paper provides insights on how to create defects datasets by mitigating the negative effect of dormant defects on defect prediction.

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

↑