在JIT缺陷预测中,时间顺序是否重要?部分复制研究
Does chronology matter in JIT defect prediction? A Partial Replication Study
摘要:
即时(JIT)模型检测修复引起的更改(或缺陷引起的更改)。这些模型是基于过去的代码更改属性与未来的代码更改属性相似的假设而设计的。然而,随着系统的发展,开发人员的专业知识和/或系统的复杂性也会发生变化。在这项工作中,我们的目标是调查随着时间的推移,代码更改属性对JIT模型的影响。我们还研究了使用最新数据以及所有可用数据对JIT模型性能的影响。此外,我们分析了加权抽样对JIT模型的固定诱导性能的影响。为此,我们使用了Eclipse JDT、Mozilla、Eclipse Platform和PostgreSQL的数据集。我们使用了五个系列的变更代码属性,如大小、扩散、历史、经验和目的。我们使用随机森林对JIT模型进行训练和测试,并使用Brier Score和ROC曲线下面积进行性能测量。我们的论文表明,JIT模型的预测能力不会随着时间的推移而改变。此外,我们观察到JIT缺陷预测模型中的数据时序可以通过考虑所有可用数据而被丢弃。另一方面,家庭的代码更改属性的重要性得分被发现振荡随着时间的推移。为了减轻代码更改属性演变的影响,建议使用加权抽样方法,其中更多的重点放在更接近当前时间发生的更改上。此外,由于诸如“开发者的专业知识”和“大小”等属性随着时间而演变,因此与采用较新数据集的模型相比,从旧数据获得的模型可能表现出不同的特征。因此,从业者应该不断地重新训练JIT模型,以包括新的数据。
英文摘要:
Just-In-Time (JIT) models detect the fix-inducing changes (or defect-inducing changes). These models are designed based on the assumption that past code change properties are similar to future ones. However, as the system evolves, the expertise of developers and/or the complexity of the system also changes. In this work, we aim to investigate the effect of code change properties on JIT models over time. We also study the impact of using recent data as well as all available data on the performance of JIT models. Further, we analyze the effect of weighted sampling on the performance of fix-inducing properties of JIT models. For this purpose, we used datasets from Eclipse JDT, Mozilla, Eclipse Platform, and PostgreSQL. We used five families of change-code properties such as size, diffusion, history, experience, and purpose. We used Random Forest to train and test the JIT model and Brier Score and the area under the ROC curve for performance measurement. Our paper suggests that the predictive power of JIT models does not change over time. Furthermore, we observed that the chronology of data in JIT defect prediction models can be discarded by considering all the available data. On the other hand, the importance score of families of code change properties is found to oscillate over time. To mitigate the impact of the evolution of code change properties, it is recommended to use a weighted sampling approach in which more emphasis is placed upon the changes occurring closer to the current time. Moreover, since properties such as "Expertise of the Developer" and "Size" evolve with time, the models obtained from old data may exhibit different characteristics compared to those employing the newer dataset. Hence, practitioners should constantly retrain JIT models to include fresh data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。