Skip to content
Preptima
hardConceptDesignMidSeniorStaff

How would you design a validation strategy that respects the structure of the data you have?

5 min readUpdated 2026-08-15

Answer

Short answer

Build the split to imitate the gap between training and deployment. Group all of an entity's rows onto one side when rows repeat per entity, split forward in time for anything temporal with an embargo covering the label window, and treat a plain random shuffle as the default that silently inflates almost every score.

Was this answer helpful?

Likely follow-ups

  • Rows are per patient visit and the deployment population is new hospitals. What is the split?
  • How wide should the embargo be between the training cut-off and the validation window, and why?
  • You have 1,800 labelled rows. Does that change the number of folds, and what else does it change?
  • How would you validate a model that will be retrained weekly for the next two years?

Related questions

Further reading