J4 ›› 2016, Vol. 38 ›› Issue (05): 932-937.
• 论文 • Previous Articles Next Articles
ZHANG Zetao1,2,YE Lijun1,2,CHENG Wei1,2,GU Jun1,2
Received:
Revised:
Online:
Published:
Abstract:
Traditional models for defect prediction always consider the textual features of source codes, comments, etc, ignoring hidden topics such as technical aspects, business logics, etc. To solve these problems, we present a new topicbased defect prediction model. The software corpus is assumed to be composed by a collection of different topics and technical aspects which lead to different defect tendencies. A set of topicbased metrics are proposed. Then, the LDA topic model is adopted to generate topics and the corresponding parameters, and the prediction model is trained by both topic metrics as well as some traditional metrics. Experimental results show that the proposed method outperforms traditional defect prediction methods and can also ensure a stable model through the evolution of software, which means the new method can be efficiently used in defect prediction tasks in software engineering.
Key words: topic model;software defect prediction;software engineering
ZHANG Zetao1,2,YE Lijun1,2,CHENG Wei1,2,GU Jun1,2. A software defect prediction method based on topic model [J]. J4, 2016, 38(05): 932-937.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://joces.nudt.edu.cn/EN/
http://joces.nudt.edu.cn/EN/Y2016/V38/I05/932