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

项目内缺陷分类器验证时保持数据顺序的必要性

On the Need of Preserving Order of Data When Validating Within-Project Defect Classifiers

Davide Falessi, Jacky Huang, Likhita Narayana, Jennifer Fong Thai, Burak Turhan

摘要:

[上下文]使用缺陷预测模型,例如分类器,可以通过使用同一项目的先前版本的数据来预测哪些软件组件可能有缺陷,从而支持测试资源分配。验证技术(下文中的技术)定义了在训练集和测试集中分割可用数据以测量分类器准确度的特定方式。时间序列技术具有保存数据的时间顺序的独特能力;即,防止测试集具有先于训练集的数据。[Aim]本文的目的是双重的:首先,我们检查是否有时间序列与非时间序列技术测量的分类器的准确性的差异。之后,我们检查这种差异的可能原因,即,如果缺陷率在一个项目的不同版本之间发生变化。[方法]我们的方法包括测量准确度,即,AUC,10个分类器上的13个开放和两个封闭的项目,使用三种验证技术,即交叉验证,引导,和向前走,其中只有后者是一个时间序列技术。[结果]在同一项目上使用同一分类器,采用10倍法测量的AUC与采用前走法测量的AUC在[-0. 20,0.22]范围内变化,有45%的情况下差异有统计学意义。同样,与通过向前走测量相比,通过自助法测量的AUC在[-0.17,0.43]范围内变化,并且在56%的情况下存在统计学差异。[结论]我们建议通过仔细考虑要得出的结论,可用数据集的属性以及分类器使用场景的真实程度来选择要使用的技术。

英文摘要:

[Context] The use of defect prediction models, such as classifiers, can support testing resource allocations by using data of the previous releases of the same project for predicting which software components are likely to be defective. A validation technique, hereinafter technique defines a specific way to split available data in training and test sets to measure a classifier accuracy. Time-series techniques have the unique ability to preserve the temporal order of data; i.e., preventing the testing set to have data antecedent to the training set. [Aim] The aim of this paper is twofold: first we check if there is a difference in the classifiers accuracy measured by time-series versus non-time-series techniques. Afterward, we check for a possible reason for this difference, i.e., if defect rates change across releases of a project. [Method] Our method consists of measuring the accuracy, i.e., AUC, of 10 classifiers on 13 open and two closed projects by using three validation techniques, namely cross validation, bootstrap, and walk-forward, where only the latter is a time-series technique. [Results] We find that the AUC of the same classifier used on the same project and measured by 10-fold varies compared to when measured by walk-forward in the range [-0.20, 0.22], and it is statistically different in 45% of the cases. Similarly, the AUC measured by bootstrap varies compared to when measured by walk-forward in the range [-0.17, 0.43], and it is statistically different in 56% of the cases. [Conclusions] We recommend choosing the technique to be used by carefully considering the conclusions to draw, the property of the available datasets, and the level of realism with the classifier usage scenario.

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

↑