- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Run a Managed Training Job with Amazon SageMaker
In this hands-on lab, you will learn how to run a fully managed machine learning training job with Amazon SageMaker AI. Starting from a prepared dataset in Amazon S3 and a pre-configured execution role, you will configure and launch a managed training job using a built-in algorithm, monitor it through to completion, and validate that the trained model artifact is written back to Amazon S3. This workflow allows for training models on SageMaker-managed infrastructure without provisioning or maintaining your own training compute resources.
Lab Info
Table of Contents
-
Challenge
Inspect the training prerequisites
- Review the prepared dataset in the S3 input/ prefix.
- Review the SageMaker execution role in the
IAMconsole and confirm it can read the input data and write to the output/ prefix.
-
Challenge
Configure and start the managed training job
- From the
Amazon SageMaker AIconsole, create anxgboosttraining job using the enforced exact nameglobomantics-xgboost-training. - Select the built-in algorithm training image; set the input S3 URI (
s3://{FULL BUCKET NAME}/input/), the output S3 URI (s3://{FULL BUCKET NAME}/output/), the execution role, and a minimum-size CPU training instance. - Adjust the training job hyperparameters for multiclass classification. Note that there are
3classes in the lab's dataset. The number of training rounds should also be set to10. - Start the job.
- From the
-
Challenge
Monitor the training job
- Track the job status from InProgress through to Completed.
- Review the job’s CloudWatch logs and training metrics.
-
Challenge
Validate the model artifact in S3
- Return to S3, and view the contents of the output/ prefix.
- Confirm a
model.tar.gzartifact was written under the enforced output prefix. It should look likes3://{FULL_BUCKET_NAME}/output/globomantics-xgboost-training/output/model.tar.gz.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.