Use training data to fit, validation data to choose settings and a final test set to estimate performance.
Related records must not quietly cross splits. For a future forecast, a time-based split can better represent the intended use than randomly mixing past and future.
The bigger picture
A supervised learning problem connects inputs available at prediction time to a defined target. Dataset size alone does not make the problem well specified. The target, sampling process and evaluation must match the decision you intend to support.
- Define target
- Split data
- Fit baseline
- Evaluate errors
Concepts to keep close
- Feature
- A measured input supplied to a model.
- Training split
- Examples used to fit the model or preprocessing steps.
- Test split
- Examples reserved for a final evaluation after development decisions are made.
Reasoning through the problem
Reserve the latest weeks before tuning.
Use earlier validation weeks for choices.
Run the final test after freezing the approach.
Use the idea carefully
Define the target and a simple baseline before choosing an algorithm. Split related examples appropriately, fit preprocessing on training data and use validation data for development choices. Keep the final test separate. Examine error types and relevant subgroups rather than relying on one headline score.