A model performs poorly on a time-dependent dataset. Which approach best addresses potential data leakage when creating training/validation splits?
Answer
Split using time order (e.g., earlier dates for training, later dates for validation)
Explanation
Time-ordered splitting prevents the model from learning patterns from future data that would not be available in production.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which action best improves model training efficiency on AWS when using managed training jobs for large datasets?
View question →
Which combination best supports secure, scalable inference with minimal operational overhead for a deployed ML model?
View question →
In SageMaker, what is the primary purpose of a training job hyperparameter?
View question →
A dataset contains missing values. Which technique is most likely to help a model handle missingness without breaking training?
View question →
You need to run a preprocessing step before training and store the result for later reuse. Which SageMaker component fits best?
View question →
In a feature engineering pipeline for tabular data, what is a key reason to perform one-hot encoding consistently between training and inference?
View question →