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.
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.
In UCI Diabetes 130-US, 41.6% of test encounters belong to a patient who also has encounters in the training set.
| DAVIS, new drug and new kinase | random split | leak-free split |
|---|---|---|
| model that only knows the two IDs | AUC 0.869 | AUC 0.500 |
| gradient boosting on simple drug and kinase descriptors | AUC 0.897 | AUC 0.597 |
Source, results and a two-minute quick start: github.com/Funkey08/Blindfold.