Inspiration
If readings from the same person appear in both training and test data, a model can score well without showing how it will perform on someone new. We built SplitReplay to make that overlap visible before students and ML practitioners trust an evaluation score.
What SplitReplay does
Upload a classification CSV, choose the target and group columns, and compare your original split with a stricter one. SplitReplay shows which groups and exact feature matches cross the train/test boundary, compares model scores, and exports the audit as JSON.
In the demo, we use 1,404 synthetic EEG-style rows. The joint holdout leaves zero shared subject IDs and zero exact feature matches across train and test. The sample contains no real patient data, and the result is not clinical evidence.
How we built it
We used Python, FastAPI, pandas, NumPy, and scikit-learn for the audit, with HTML, CSS, and JavaScript for the dashboard. The joint holdout keeps rows linked by a shared group or an exact feature match in the same partition. Both splits use the same random forest settings, and preprocessing is fitted separately on each split’s training data. Source code and local setup
Challenges and what we learned
The hardest part was keeping both groups and duplicates together while still forming a usable test set. We show the requested and actual test sizes and flag skipped evaluations, so reviewers can see when the constraints affect the comparison.
We also learned that a lower score after changing the split does not tell us how much leakage inflated the original score: the test population changed too. SplitReplay makes the overlap measurable, but exact matching can miss near-duplicates, and the prototype evaluates one classifier.
Credits
The demo uses SplitReplay’s bundled synthetic dataset. ChatGPT assisted with parts of the code, interface design, tests, and documentation, and helped prepare the demo and submission text. The audit and recommendations run locally without an LLM.