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
Effective Amazon Machine Learning

You're reading from   Effective Amazon Machine Learning Expert web services for machine learning on cloud

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781785883231
Length 306 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alexis Perrier Alexis Perrier
Author Profile Icon Alexis Perrier
Alexis Perrier
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introduction to Machine Learning and Predictive Analytics FREE CHAPTER 2. Machine Learning Definitions and Concepts 3. Overview of an Amazon Machine Learning Workflow 4. Loading and Preparing the Dataset 5. Model Creation 6. Predictions and Performances 7. Command Line and SDK 8. Creating Datasources from Redshift 9. Building a Streaming Data Analysis Pipeline

Preparing the data


Now that we have the initial raw dataset, we are going to shuffle it, split it into a training and a held-out subset, and load it to an S3 bucket.

Splitting the data

As we saw in Chapter 2, Machine Learning Definitions and Concepts, in order to build and select the best model, we need to split the dataset into three parts: training, validation, and test, with the usual ratios being 60%, 20%, and 20%. The training and validation sets are used to build several models and select the best one while the held-out set is used for the final performance evaluation on previously unseen data. We will use the held-out subset in Chapter 6,Predictions and Performancesto simulate batch predictions with the model we build in Chapter 5, Model Creation.

Since Amazon ML does the job of splitting the dataset used for model training and model evaluation into training and validation subsets, we only need to split our initial dataset into two parts: the global training/evaluation subset (80%) for...

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 AU $24.99/month. Cancel anytime