LeakageDetector 2.0: Analyzing Data Leakage in Jupyter-Driven Machine Learning Pipelines

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Truong, Owen, Zhang, Terrence, Marchareddy, Arnav, Lee, Ryan, Busold, Jeffery, Socas, Michael, AlOmar, Eman Abdullah
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916957924622336
author Truong, Owen
Zhang, Terrence
Marchareddy, Arnav
Lee, Ryan
Busold, Jeffery
Socas, Michael
AlOmar, Eman Abdullah
author_facet Truong, Owen
Zhang, Terrence
Marchareddy, Arnav
Lee, Ryan
Busold, Jeffery
Socas, Michael
AlOmar, Eman Abdullah
contents In software development environments, code quality is crucial. This study aims to assist Machine Learning (ML) engineers in enhancing their code by identifying and correcting Data Leakage issues within their models. Data Leakage occurs when information from the test dataset is inadvertently included in the training data when preparing a data science model, resulting in misleading performance evaluations. ML developers must carefully separate their data into training, evaluation, and test sets to avoid introducing Data Leakage into their code. In this paper, we develop a new Visual Studio Code (VS Code) extension, called LeakageDetector, that detects Data Leakage, mainly Overlap, Preprocessing and Multi-test leakage, from Jupyter Notebook files. Beyond detection, we included two correction mechanisms: a conventional approach, known as a quick fix, which manually fixes the leakage, and an LLM-driven approach that guides ML developers toward best practices for building ML pipelines.
format Preprint
id arxiv_https___arxiv_org_abs_2509_15971
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LeakageDetector 2.0: Analyzing Data Leakage in Jupyter-Driven Machine Learning Pipelines
Truong, Owen
Zhang, Terrence
Marchareddy, Arnav
Lee, Ryan
Busold, Jeffery
Socas, Michael
AlOmar, Eman Abdullah
Software Engineering
In software development environments, code quality is crucial. This study aims to assist Machine Learning (ML) engineers in enhancing their code by identifying and correcting Data Leakage issues within their models. Data Leakage occurs when information from the test dataset is inadvertently included in the training data when preparing a data science model, resulting in misleading performance evaluations. ML developers must carefully separate their data into training, evaluation, and test sets to avoid introducing Data Leakage into their code. In this paper, we develop a new Visual Studio Code (VS Code) extension, called LeakageDetector, that detects Data Leakage, mainly Overlap, Preprocessing and Multi-test leakage, from Jupyter Notebook files. Beyond detection, we included two correction mechanisms: a conventional approach, known as a quick fix, which manually fixes the leakage, and an LLM-driven approach that guides ML developers toward best practices for building ML pipelines.
title LeakageDetector 2.0: Analyzing Data Leakage in Jupyter-Driven Machine Learning Pipelines
topic Software Engineering
url https://arxiv.org/abs/2509.15971