Training & Refining Models
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing AWS Certified Machine Learning Engineer - Associate premium course — no separate purchase.
Included in this chapter:
- The training loop, and how to make it faster and cheaper
- Hyperparameter tuning with SageMaker AMT
- Bringing your own model, fighting overfitting, and versioning
- Reading the question: which lever, which strategy
SageMaker AMT tuning strategies and when each fits
| Strategy | How it searches | Best for | Constraint |
|---|---|---|---|
| Bayesian optimization | Learns from completed jobs to propose better next configurations | Continuous ranges where each job is expensive; the efficient default | Less parallelizable because each round informs the next |
| Hyperband | Multi-fidelity: stops weak runs early and reallocates budget to strong ones | Long deep-learning jobs with a meaningful intermediate metric | Needs an objective that improves during training |
| Random search | Samples configurations independently at random | A fair baseline; fully parallel across many jobs | No learning between jobs, so it can waste budget |
| Grid search | Exhaustively tries every combination | Small, fully categorical spaces you must cover completely | Categorical parameters only; combinations explode fast |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/train-warm-pools.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-how-it-works.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-warm-start.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-sdk.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/tf.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/pytorch.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/studio-jumpstart.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-approve.html