Abstract

Software defect prediction (SDP) exerts a major role in software development, concerning reducing software costs and ensuring software quality. However, developing an accurate SDP model is still a severe and challenging task with the lack of training data. Fortunately, Siamese networks are powerful for learning a few samples and have been perfectly used in other fields. This paper explores the advantages of Siamese networks to propose a novel SDP model, Siamese dense neural networks (SDNNs), which integrates similarity feature learning and distance metric learning into a unified approach. It mainly includes two phases: model building and training. To be more specific, it means building the novel SDNN for capturing the highest-level similarity features and training the model to realize prediction through the designed contrast loss function with cosine proximity. Importantly, we extensively compared the SDNN approach with the state-of-the-art SDP approaches utilizing 10 software defect datasets. The experimental results show that our SDNN is a competitive approach and is able to improve the prediction performance more significantly compared with the benchmarked approaches.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call