Within-project and cross-project defect prediction based on model averaging

基于模型平均的项目内和跨项目缺陷预测

阅读:1

Abstract

Software defect prediction has an important impact on the national economy and financial service industry. Discovering defective modules in the early stage of software development has great significance. This paper proposes a within-project and cross-project defect prediction technology based on model averaging, which uses XGBoost and LightGBM algorithms in machine learning as candidate models and introduces model averaging theory to improve performance. First, two candidate models are used for probability prediction, and then each group is used as a test dataset to evaluate the model by the cross-validation method. Then, the model weight is determined by minimizing the sum of the squared prediction errors of all groups, and finally, the predicted probability of model averaging is obtained. Four typical public software defect datasets (NASA, AEEEM, ReLink, SoftLab) are used as test datasets, and the four indicators, precision, recall, F1 and AUC are used as evaluation criteria. For within-project defect prediction, compared with the XGBoost and LightGBM algorithms, the prediction results of the model averaging method on the four datasets are slightly better than the XGBoost and LightGBM algorithms, which also corresponds with the ensemble learning idea of model averaging theory. Compared with the seven traditional machine learning algorithms, the model average prediction method performed best on most of the data. For cross-project defect prediction, compared with the four benchmark methods, the model averaging method performs better overall. The experimental results show that the model averaging prediction method achieves good prediction results in both the within-project and cross-project defect scenarios.

特别声明

1、本页面内容包含部分的内容是基于公开信息的合理引用;引用内容仅为补充信息,不代表本站立场。

2、若认为本页面引用内容涉及侵权,请及时与本站联系,我们将第一时间处理。

3、其他媒体/个人如需使用本页面原创内容,需注明“来源:[生知库]”并获得授权;使用引用内容的,需自行联系原作者获得许可。

4、投稿及合作请联系:info@biocloudy.com。