Book Image

Effective Amazon Machine Learning

By : Alexis Perrier
Book Image

Effective Amazon Machine Learning

By: Alexis Perrier

Overview of this book

Predictive analytics is a complex domain requiring coding skills, an understanding of the mathematical concepts underpinning machine learning algorithms, and the ability to create compelling data visualizations. Following AWS simplifying Machine learning, this book will help you bring predictive analytics projects to fruition in three easy steps: data preparation, model tuning, and model selection. This book will introduce you to the Amazon Machine Learning platform and will implement core data science concepts such as classification, regression, regularization, overfitting, model selection, and evaluation. Furthermore, you will learn to leverage the Amazon Web Service (AWS) ecosystem for extended access to data sources, implement realtime predictions, and run Amazon Machine Learning projects via the command line and the Python SDK. Towards the end of the book, you will also learn how to apply these services to other problems, such as text mining, and to more complex datasets.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Preface

Chapter 6. Predictions and Performances

It is time to make some predictions! In Chapter 4, Loading and Preparing the Dataset, we did split the Titanic dataset into two subsets, the training and held-out subsets, respectively consisting of 70% and 30% of the original dataset randomly shuffled. We have used variations of the training subset extensively in chapter 5 Model Creation, to train and select the best classification model. But so far, we have not used the held-out subset at all. In this chapter, we apply our models to this held-out subset to make predictions on unseen data and make a final assessment of the performance and robustness of our models.

Amazon ML offers two types of predictions: batch and streaming. Batch prediction requires a datasource. The samples you want to predict are given to the model all at once in batch mode. Streaming, also known as real-time or online predictions, requires the creation of an API endpoint and consists of submitting sequences of samples, one by...