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

Boto3, the Python SDK


Another tool to interact with the Amazon ML service outside of the web interface is an SDK. Simply put, an SDK is a wrapper around an API that makes working with the service much simpler and more efficient, as many details of the interactions are taken care of. AWS offers SDKs in the most widespread languages such as PHP, Java, Ruby, .Net, and of course, Python. In this chapter, we will focus on working with the Amazon ML service through the Python SDK. The Python SDK requires the Boto3 module.

Installation of the Boto3 module is done via pip. Refer to the quickstart guide available at http://boto3.readthedocs.io/en/latest/guide/quickstart.html if you need more information and troubleshooting:

pip install boto3

Boto3 is available for most AWS services. The complete list can be found at http://boto3.readthedocs.io/en/latest/reference/services/index.html. We will focus on Boto3 for S3 and Amazon ML.

Setting up permissions for SDK access can be done via the aws configure command...