[論文レビュー] On the Need of Preserving Order of Data When Validating Within-Project Defect Classifiers
tldr: 本論文は、同一プロジェクト内の欠陥予測モデルに対して、時系列に基づくウォークフォワード検証と非時系列手法(クロス検証とブートストラップ)を比較し、顕著なAUCの差があることを示し、検証の選択はデータの特性と現実性に依存する可能性があることを示唆しています。
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.
研究の動機と目的
- 時系列検証が、同一プロジェクト内の欠陥予測のための非時系列アプローチ(AUC)と異なる精度を生み出すかを評価する。
- リリース間の欠陥率の変化が、検証技法間の観測された差を説明するかを調査する。
- 複数の検証スキームを用いて15のプロジェクト(13公開、2閉鎖)に対して10の分類器を適用し、影響を定量化する。
- データセットの特性と現実的な使用シナリオを考慮した検証手法の推奨を提供する。
提案手法
- 3つの検証技法(クロス検証、ブートストラップ、ウォークフォワード)を用いて、15のプロジェクトで10の欠陥分類器のAUCを算出する。
- 訓練データを前提とするテストデータが遡及しないよう、ウォークフォワード検証で時系列順序を保持する。
- ウォークフォワードと他の2技法のAUC差を比較し、統計的有意性を評価する。
- プロジェクトのリリース間での欠陥率の変化が差異と相関するかを分析する。
実験結果
リサーチクエスチョン
- RQ1時系列(ウォークフォワード)検証と非時系列検証は、同一プロジェクト内の欠陥予測分類器のAUC測定値に差を生むか。
- RQ2データセットと分類器間で、観測されたAUC差は統計的に有意か。
- RQ3リリース間の欠陥率の変化は、検証技法間の差を説明するか。
- RQ4データセットの特性と現実性の希望に応じて、実務家はどの検証方法を選択すべきか。
主な発見
- 10分割クロス検証とウォークフォワードの間のAUC差は、同一プロジェクト/分類器で-0.20〜0.22の範囲。
- ブートストラップとウォークフォワードの間のAUC差は、同一プロジェクト/分類器で-0.17〜0.43の範囲。
- 10分割クロス検証とウォークフォワード間のAUC差が、全ケースの45%で統計的に有意。
- ブートストラップとウォークフォワード間のAUC差が、全ケースの56%で統計的に有意。
- リリース間での欠陥率の変化は、測定された精度の差に寄与する可能性があり、慎重な手法選択を促す。
- 著者は、データセットの特性と分類器の使用シナリオの現実性を考慮して検証技法を選ぶことを推奨している。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。