Title
On The Need Of Preserving Order Of Data When Validating Within-Project Defect Classifiers
Abstract
We are in the shoes of a practitioner who uses previous project releases' data to predict which classes of the current release are defect-prone. In this scenario, the practitioner would like to use the most accurate classifier among the many available ones. A validation technique, hereinafter "technique", defines how to measure the prediction accuracy of a classifier. Several previous research efforts analyzed several techniques. However, no previous study compared validation techniques in the within-project across-release class-level context or considered techniques that preserve the order of data. In this paper, we investigate which technique recommends the most accurate classifier. We use the last release of a project as the ground truth to evaluate the classifier's accuracy and hence the ability of a technique to recommend an accurate classifier. We consider nine classifiers, two industry and 13 open projects, and three validation techniques: namely 10-fold cross-validation (i.e., the most used technique), bootstrap (i.e., the recommended technique), and walk-forward (i.e., a technique preserving the order of data). Our results show that: 1) classifiers differ in accuracy in all datasets regardless of their entity per value, 2) walk-forward outperforms both 10-fold cross-validation and bootstrap statistically in all three accuracy metrics: AUC of the selected classifier, bias and absolute bias, 3) surprisingly, all techniques resulted to be more prone to overestimate than to underestimate the performances of classifiers, and 3) the defect rate resulted in changing between the second and first half in both industry projects and 83% of open-source datasets. This study recommends the use of techniques that preserve the order of data such as walk-forward over 10-fold cross-validation and bootstrap in the within-project across-release class-level context given the above empirical results and that walk-forward is by nature more simple, inexpensive, and stable than the other two techniques.
Year
DOI
Venue
2020
10.1007/s10664-020-09868-x
EMPIRICAL SOFTWARE ENGINEERING
Keywords
DocType
Volume
Defect classifiers, Classifiers, Model validation techniques
Journal
25
Issue
ISSN
Citations 
6
1382-3256
3
PageRank 
References 
Authors
0.36
0
5
Name
Order
Citations
PageRank
Davide Falessi150434.89
Jacky Huang230.70
Likhita Narayana330.70
Jennifer Fong Thai430.70
Burak Turhan5557.54