Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Effective Amazon Machine Learning

You're reading from  Effective Amazon Machine Learning

Product type Book
Published in Apr 2017
Publisher Packt
ISBN-13 9781785883231
Pages 306 pages
Edition 1st Edition
Languages
Author (1):
Alexis Perrier Alexis Perrier
Profile icon Alexis Perrier
Toc

Table of Contents (17) Chapters close

Making real-time predictions


With batch predictions, you submit all the samples you want the model to predict at once to Amazon ML by creating a datasource. With real-time predictions, also called streaming or online predictions, the idea is to send one sample at a time to an API endpoint, a URL, via HTTP queries, and receive back predictions and information for each one of the samples.

Setting up real-time predictions on a model consists of knowing the prediction API endpoint URL and writing a script that can read your data, send each new sample to that API URL, and retrieve the predicted class or value. We will present a Python-based example in the following section.

Amazon ML also offers a way to make predictions on data you create on the fly on the prediction page. We can input the profile of a would-be passenger on the Titanic and see whether that profile would have survived or not. It is a great way to explore the influence of the dataset variables on the outcome.

Before setting up API...

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