---
title: "Comment by Mihai_LeanZero on \"How to Detect Hidden Target Leakage in Public Datasets with Python and a Dependency Graph\" | Hashnode"
description: "Really solid approach, the dependency-graph angle catches a whole class of leakage that column-correlation checks miss entirely. One kind it won't catch though:"
url: "https://hashnode.com/posts/how-to-detect-hidden-target-leakage-in-public-datasets-with-python-and-a-dependency-graph/6aaec60b559dfa1d9e4f1ddc/comment/6aaf4f400dbe5113961c0171"
---

[Discussion](https://hashnode.com/posts/how-to-detect-hidden-target-leakage-in-public-datasets-with-python-and-a-dependency-graph/6aaec60b559dfa1d9e4f1ddc)

Comment [How to Detect Hidden Target Leakage in Public Datasets with Python and a Dependency Graph](https://hashnode.com/posts/how-to-detect-hidden-target-leakage-in-public-datasets-with-python-and-a-dependency-graph/6aaec60b559dfa1d9e4f1ddc)

[Mihai\_LeanZero](https://hashnode.com/@mihaileanzero)

[Sep 20](https://hashnode.com/posts/how-to-detect-hidden-target-leakage-in-public-datasets-with-python-and-a-dependency-graph/6aaec60b559dfa1d9e4f1ddc/comment/6aaf4f400dbe5113961c0171)

Really solid approach, the dependency-graph angle catches a whole class of leakage that column-correlation checks miss entirely. One kind it won't catch though: row-level leakage, like the same census tract showing up in both the train and test fold across different years of a longitudinal file. No column is derived from another there, so the lineage manifest looks clean, but the model is still seeing the answer wearing a different row index. Worth a companion check that groups by entity ID before the K-fold split runs, not just the column graph.
