A student uses SageMaker Automatic Model Tuning for an XGBoost model but finds that the best hyperparameters often change between runs. Which factor most directly explains this nondeterminism and what should be done?

Answer

Randomness from the training algorithm and data shuffling can affect results; set deterministic seeds and ensure consistent data preprocessing and shuffling

Explanation

Non-deterministic training (seeds, shuffling, parallelism) can lead to different optimal configurations. Using fixed seeds and consistent preprocessing improves stability.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list