Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Artificial Intelligence on Amazon Web Services

You're reading from   Hands-On Artificial Intelligence on Amazon Web Services Decrease the time to market for AI and ML applications with the power of AWS

Arrow left icon
Product type Paperback
Published in Oct 2019
Publisher Packt
ISBN-13 9781789534146
Length 426 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Subhashini Tripuraneni Subhashini Tripuraneni
Author Profile Icon Subhashini Tripuraneni
Subhashini Tripuraneni
Charles Song Charles Song
Author Profile Icon Charles Song
Charles Song
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1: Introduction and Anatomy of a Modern AI Application FREE CHAPTER
2. Introduction to Artificial Intelligence on Amazon Web Services 3. Anatomy of a Modern AI Application 4. Section 2: Building Applications with AWS AI Services
5. Detecting and Translating Text with Amazon Rekognition and Translate 6. Performing Speech-to-Text and Vice Versa with Amazon Transcribe and Polly 7. Extracting Information from Text with Amazon Comprehend 8. Building a Voice Chatbot with Amazon Lex 9. Section 3: Training Machine Learning Models with Amazon SageMaker
10. Working with Amazon SageMaker 11. Creating Machine Learning Inference Pipelines 12. Discovering Topics in Text Collection 13. Classifying Images Using Amazon SageMaker 14. Sales Forecasting with Deep Learning and Auto Regression 15. Section 4: Machine Learning Model Monitoring and Governance
16. Model Accuracy Degradation and Feedback Loops 17. What Is Next? 18. Other Books You May Enjoy

Performing inference through Batch Transform

In this section, we will classify (in batch mode) a few images that form part of the test dataset. Since we want to classify more than one image at a time, we will create a Batch Transform job. Please refer to Chapter 8, Creating Machine Learning Inference Pipelines, to learn about when and where Batch Transform jobs are used and how they work.

Before we create a Batch Transform job, we need to provision the trained model.

In the following code snippet, we are going to do the following:

  1. We will create a trained model by calling the create_model() function of the SageMaker service (boto3, the AWS SDK for Python, is used to provision a low-level interface to the SageMaker service).
  2. We will pass a Docker image of the image classification algorithm and the path to the trained model to this function:
info = sage.describe_training_job(TrainingJobName...
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 €18.99/month. Cancel anytime