Abstract
Context: Effort-Aware Defect Prediction (EADP) ranks software modules or changes based on their predicted number of defects (i.e., considering modules or changes as effort) or defect density (i.e., considering LOC as effort) by using learning to rank algorithms. Ranking instability refers to the inconsistent conclusions produced by existing empirical studies of EADP. The major reason is the poor experimental design, such as comparison of few learning to rank algorithms, the use of small number of datasets or datasets without indicating numbers of defects, and evaluation with inappropriate or few metrics.Objective: To find a stable ranking of learning to rank algorithms to investigate the best ones for EADP,Method: We examine the practical effects of 34 algorithms on 49 datasets for EADP. We measure the performance of these algorithms using 7 module-based and 7 LOC-based metrics and run experiments under cross-release and cross-project settings, respectively. Finally, we obtain the ranking of these algorithms by performing the Scott-Knott ESD test.Results: When module is used as effort, random forest regression performs the best under cross-release setting, and linear regression performs the best under cross-project setting among the learning to rank algorithms; (2) when LOC is used as effort, LTR-linear (Learning-to-Rank with the linear model) performs the best under cross-release setting, and Ranking SVM performs the best under cross-project setting.Conclusion: This comprehensive experimental procedure allows us to discover a stable ranking of the studied algorithms to select the best ones according to the requirement of software projects.
| Original language | English |
|---|---|
| Article number | 107165 |
| Number of pages | 18 |
| Journal | Information and Software Technology |
| Volume | 157 |
| Early online date | Feb 2023 |
| DOIs | |
| State | Published - May 2023 |
Funding
This work was supported in part by the National Natural Science Foundation of China (61972290) , the Project of Sanya Yazhou Bay Science and Technology City, China (SCKJ-JYRC-2022-17) , the General Research Fund of the Research Grants, Council of Hong Kong (11208017) , the Research Funds of the City University of Hong Kong (7005028, 7005217 and 6000796) , and the Funding Support from other Industry Projects, China (9229109, 9229098, 9229029, 9220103, 9220097, and 9440227) , the Youth Fund Project of Hainan Natural Science Foundation, China (622QN344) , and the Sanya Science and Education Innovation Park of Wuhan University of Technology, China (2022KF0020) .
Keywords
- Software defect prediction
- Empirical study
- Learning to rank
- Ranking instability
Indexed by
- Scopus
- EI
- SCIE
Fingerprint
Dive into the research topics of 'Finding the best learning to rank algorithms for effort-aware defect prediction'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver