Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
AWS Certified Machine Learning - Specialty (MLS-C01) Certification Guide - Second Edition

You're reading from  AWS Certified Machine Learning - Specialty (MLS-C01) Certification Guide - Second Edition

Product type Book
Published in Feb 2024
Publisher Packt
ISBN-13 9781835082201
Pages 342 pages
Edition 2nd Edition
Languages
Authors (2):
Somanath Nanda Somanath Nanda
Profile icon Somanath Nanda
Weslley Moura Weslley Moura
Profile icon Weslley Moura
View More author details

Table of Contents (13) Chapters

Preface 1. Chapter 1: Machine Learning Fundamentals 2. Chapter 2: AWS Services for Data Storage 3. Chapter 3: AWS Services for Data Migration and Processing 4. Chapter 4: Data Preparation and Transformation 5. Chapter 5: Data Understanding and Visualization 6. Chapter 6: Applying Machine Learning Algorithms 7. Chapter 7: Evaluating and Optimizing Models 8. Chapter 8: AWS Application Services for AI/ML 9. Chapter 9: Amazon SageMaker Modeling 10. Chapter 10: Model Deployment 11. Chapter 11: Accessing the Online Practice Resources 12. Other Books You May Enjoy

SageMaker deployment options

Amazon SageMaker offers diverse deployment options to deploy ML models effectively. In this section, you will explore different ways of deploying models using SageMaker, providing technology solutions with scenarios and examples.

Real-time endpoint deployment

In this scenario, you have a trained image classification model, and you want to deploy it to provide real-time predictions for incoming images.

Solution

Create a SageMaker model and deploy it to a real-time endpoint.

Steps

  1. Train your model using SageMaker training jobs.
  2. Create a SageMaker model from the trained model artifacts.
  3. Deploy the model to a real-time endpoint.

Example code snippet

from sagemaker import get_execution_role
from sagemaker.model import Model
from sagemaker.predictor import RealTimePredictor
role = get_execution_role()
model_artifact='s3://your-s3-bucket/path/to/model.tar.gz'
model = Model(model_data=model_artifact...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}