Blindfold

Before you trust a test score, see every path by which your test data reached your training data.

Blindfold loads a dataset's rows and the things they belong to (patients, drugs, proteins, exact copies) into an embedded Relate graph, finds every test row that can reach the training set, explains each one as a path, and writes a split that closes every path. These pages were drawn with Relate's own neo4j-viz helper. Drag, zoom and click the nodes.

A drug and kinase pair that leaks twice

In the DAVIS binding data, every drug was measured against every kinase. Under a random split, every test pair shares its drug and its kinase with training. Red is the test pair, blue are training pairs, green is the drug and purple the kinase.

A hospital encounter whose patient is also in training

In UCI Diabetes 130-US, 41.6% of test encounters belong to a patient who also has encounters in the training set.

What the leaks do to a score (5 seeds)

DAVIS, new drug and new kinaserandom splitleak-free split
model that only knows the two IDsAUC 0.869AUC 0.500
gradient boosting on simple drug and kinase descriptorsAUC 0.897AUC 0.597

Source, results and a two-minute quick start: github.com/Funkey08/Blindfold.