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

Making batch predictions


Making batch predictions on Amazon ML is straightforward and follows this process:

  1. From the dashboard, create a new Batch prediction.
  2. Select the model.
  3. Select the datasource on which to apply the model.
  4. Set the prediction output folder and grant permissions.
  5. Review and launch.

We call the prediction dataset or datasource, the data on which we want to make predictions. In this chapter, we are in a testing context and the prediction dataset is the held-out dataset we extracted from the whole original dataset. In a real-world context, the prediction dataset refers to entirely new data and does not include the target variable. 

The prediction can only work if the distribution of the prediction dataset is similar to the distribution of the training dataset on which the model has been trained. The prediction datasource and the training datasource must also share the same schema, with one difference the prediction dataset does not need to include the target variable. Amazon ML...