Skip to main content
QUICK REVIEW

[논문 리뷰] On the Need of Preserving Order of Data When Validating Within-Project Defect Classifiers

Davide Falessi, Jacky Huang|arXiv (Cornell University)|2018. 09. 05.
Software Engineering ResearchComputer Science참고 문헌 67인용 수 47
한 줄 요약

이 논문은 시간 시계열 walk-forward 검증과 비-시간 시계열 방법(교차 검증 및 부트스트랩)을 비교한 결과, 동일 프로젝트 내 결함 분류기에 대해 주목할 만한 AUC 차이가 나타나며 검증의 선택은 데이터 속성과 현실성에 의존한다는 점을 시사한다.

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.

연구 동기 및 목표

  • 시간 시계열 검증이 동일 프로젝트 내 결함 예측에서 비시간 시계열 방법과 비교하여 분류기 정확도(AUC)에 차이를 보이는지 평가한다.
  • 릴리스 간 결함 비율의 변동이 검증 기법 간 차이에 설명 가능한지 조사한다.
  • 여러 검증 방식으로 15개 프로젝트(열림 13개, 닫힘 2개)에 10개의 분류기를 적용하여 효과를 정량화한다.
  • 데이터 세트 특성과 현실적 사용 시나리오를 바탕으로 검증 기술 선택에 대한 권고를 제공한다.

제안 방법

  • 교차 검증, 부트스트랩, 및 walk-forward의 세 가지 검증 기법을 사용하여 15개 프로젝트에서 10개 결함 분류기의 AUC를 계산한다.
  • walk-forward 검증으로 시간적 순서를 보존하여 테스트 데이터가 학습 데이터보다 앞서지 않도록 한다.
  • walk-forward와 다른 두 기법 간의 AUC 차이를 비교하고 통계적 유의성을 평가한다.
  • 프로젝트 릴리스 간 결함 비율의 변화와 차이가 상관관계가 있는지 분석한다.

실험 결과

연구 질문

  • RQ1시간 시계열(walk-forward) 검증과 비시간 시계열 검증이 동일 프로젝트 내 결함 분류기에 대해 서로 다른 AUC 측정을 보이는가?
  • RQ2관찰된 AUC 차이가 데이터 세트와 분류기 전반에서 통계적으로 유의한가?
  • RQ3릴리스 간 결함 비율의 변화가 검증 기법 간 차이를 설명하는가?
  • RQ4데이터 세트 특성과 원하는 현실성에 따라 실무자가 어떤 검증 방법을 선택해야 하는가?

주요 결과

  • AUC 차이는 동일한 프로젝트/분류기에 대해 -0.20에서 0.22까지의 범위를 가지며 10-fold 교차 검증과 walk-forward 간 차이가 나타난다.
  • AUC 차이는 동일한 프로젝트/분류기에 대해 -0.17에서 0.43까지의 범위를 가지며 부트스트랩과 walk-forward 간 차이가 나타난다.
  • 사례의 45%에서 10-fold 교차 검증과 walk-forward 간 AUC 차이가 통계적으로 유의하다.
  • 사례의 56%에서 부트스트랩과 walk-forward 간 AUC 차이가 통계적으로 유의하다.
  • 릴리스 간 결함 비율의 변화는 측정된 정확도 차이에 기여할 수 있으며 신중한 방법 선택의 동기를 제공한다.
  • 저자들은 데이터 세트 속성과 분류기 사용 시나리오의 현실성을 고려하여 검증 기법을 선택할 것을 권고한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.