You must tune a time-series forecasting model where the metric depends on forecasting horizon. During hyperparameter tuning, which approach best avoids leakage and overly optimistic selection?
Answer
Use time-respecting splits (e.g., rolling-origin) and compute metrics per horizon segment, then aggregate
Explanation
Time-respecting validation prevents information leakage, and horizon-aware metrics better align tuning objectives with how forecasts will be used.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
In a multi-stage MLOps flow, you want to automatically promote a new model version only if it meets both quality and fairness constraints. What is the most appropriate AWS mechanism for implementing these checks before deployment?
View question →
In a multi-model endpoint scenario, you want to reduce latency while keeping model-specific preprocessing. Which approach most directly supports per-request routing without duplicating infrastructure?
View question →
You must train a regression model in SageMaker and use early stopping. The metric is noisy and occasionally improves briefly. Which configuration choice most robustly avoids premature stopping while still limiting overfitting?
View question →
A team investigates prediction drift after a new data distribution appears. They collect a sample of recent requests and compare input feature statistics to the training baseline. They observe a strong shift in one feature with stable overall label distribution. Which root-cause mitigation is most aligned to this evidence?
View question →
You are using distributed training with a built-in algorithm and need to ensure reproducibility across runs. Which practice most directly improves deterministic behavior?
View question →
A dataset has severe class imbalance and you are evaluating a classifier. Which evaluation strategy best reflects real-world cost when false negatives are far more expensive than false positives?
View question →