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

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.

Paper

References (15)

07Enhancing comprehension and navigation in jupyter notebooks with static analysis2023 · 2023 IEEE international Conference on software analysis, evolution and reengineering (SANER)
08Evaluate the selected model using the newly created X_X_test_new and y_X_test_new variables
09Pyright Module: An npm package that runs with Node and is responsible for outputting important type information of the Jupyter Notebook code
10Insert a placeholder loading method, such as load_test_data() , to simulate retrieving a new, independent test dataset
11this approach is that it provides a consistent and environment that works with different operating systems
12Apply the model’s transformation method (specifically looking for the transform keyword) to X_X_test_new_0 , resulting in a transformed variable X_X_test_new

Scroll for more · 3 remaining

Similar papers

© 2026 NYSGPT2525 LLC