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 5. Model Creation

We have now created several data sources based on the original Titanic dataset in S3. We are ready to train and evaluate an Amazon ML prediction model. In Amazon ML, creating a model consists of the following:

  • Selecting the training datasource
  • Defining a recipe for data transformation
  • Setting the parameters of the learning algorithm
  • Evaluating the quality of the model

In this chapter, we will start by exploring the data transformations available in Amazon ML, and we will compare different recipes for the Titanic dataset. Amazon ML defines recipes by default depending on the nature of the data. We will investigate and challenge these default transformations.

The model-building step is simple enough, and we will spend some time examining the available parameters. The model evaluation is where everything converges. The evaluation metrics are dependent on the type of the prediction at hand, regression, binary or multi-class classification. We will look at how these different...