A time-series classification dataset is split into training/validation/test using different time windows. During training with hyperparameter tuning, validation performance is high but test performance collapses due to temporal leakage. Which mitigation is most likely to fix the issue?
Answer
Use time-aware splitting (e.g., forward-chaining) and incorporate the same windowing into resampling/hyperparameter tuning.
Explanation
Forward-chaining splits enforce temporal causality; ensuring hyperparameter tuning respects these windows prevents leakage from the future into model selection.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must implement a multi-variant A/B test for model ranking where each user request must be consistently routed to the same model version for a session. Which SageMaker feature is most appropriate?
View question →
A labeling workflow uses human review for ambiguous cases. You need to ensure labelers see the same preprocessing used in model training and that post-label transformations do not leak information. What is the most appropriate design?
View question →
A dataset contains severe class imbalance for a fraud detection model. You want a metric that reflects business cost and can be monitored in SageMaker training/validation. Which choice best matches this goal?
View question →
You need a SageMaker training job that supports continuous training with checkpointing and allows safe restart after a preemption. Which configuration combination best satisfies this requirement?
View question →
Your team must deploy an XGBoost regression model using SageMaker. At inference time, the business requires probabilistic outputs as well as point predictions, but the model must remain efficient for real-time use. Which solution is most aligned with SageMaker capabilities?
View question →
A model trained on features with different statistical scales underperforms at inference after input normalization changes between training and serving. In SageMaker, which approach most directly prevents train/serve skew?
View question →