Book Image

Machine Learning with AWS

By : Jeffrey Jackovich, Ruze Richards
Book Image

Machine Learning with AWS

By: Jeffrey Jackovich, Ruze Richards

Overview of this book

<p>Machine Learning with AWS is the right place to start if you are a beginner interested in learning useful artificial intelligence (AI) and machine learning skills using Amazon Web Services (AWS), the most popular and powerful cloud platform. You will learn how to use AWS to transform your projects into apps that work at high speed and are highly scalable. From natural language processing (NLP) applications, such as language translation and understanding news articles and other text sources, to creating chatbots with both voice and text interfaces, you will learn all that there is to know about using AWS to your advantage. You will also understand how to process huge numbers of images fast and create machine learning models.</p> <p>By the end of this book, you will have developed the skills you need to efficiently use AWS in your machine learning and artificial intelligence projects.</p>
Table of Contents (9 chapters)
Machine Learning with AWS
Preface

Preface

Note

About

This section briefly introduces the author, the coverage of this book, the technical skills you'll need to get started, and the hardware and software requirements required to complete all of the included activities and exercises.

About the Book

In this book, you will learn about the various artificial intelligence and machine learning services available on AWS. Through practical hands-on exercises, you will learn how to use these services to generate impressive results. By the end of this book, you will have a basic understanding of how to use a wide range of AWS services in your own projects.

About the Authors

Jeffrey Jackovich, is the author of this book, and a curious data scientist with a background in health-tech and mergers and acquisitions (M&A). He has extensive business-oriented healthcare knowledge, but enjoys analyzing all types of data with R and Python. He loves the challenges involved in the data science process, and his ingenious demeanor was tempered while serving as a Peace Corps volunteer in Morocco. He is completing a Masters of Science in Computer Information Systems, with a Data Analytics concentration, from Boston University.

Ruze Richards, is the author of this book, and a data scientist and cloud architect who has spent most of his career building high-performance analytics systems for enterprises and startups. He is especially passionate about AI and machine learning, having started life as a physicist who got excited about neural nets, then going on to work at AT&T Bell Labs in order to further pursue this area of interest. With the new wave of excitement along with the actual computing power being available on the cloud for anybody to actually get amazing results with machine learning, he is thrilled to be able to spread the knowledge and help people achieve their goals.

Objectives

  • Get up and running with machine learning on the AWS platform

  • Analyze unstructured text using AI and Amazon Comprehend

  • Create a chatbot and interact with it using speech and text input

  • Retrieve external data via your chatbot

  • Develop a natural language interface

  • Apply AI to images and videos with Amazon Rekognition

Audience

This book is ideal for data scientists, programmers, and machine-learning enthusiasts who want to learn about the artificial intelligence and machine learning capabilities of the Amazon Web Services.

Approach

This book takes a hands-on approach to teach you machine learning with AWS. It contains multiple activities that use real-life business scenarios for you to practice and apply your new skills in a highly relevant context.

Minimum Hardware Requirements

For an optimal student experience, we recommend the following hardware configuration:

  • Processor: Intel Core i5 or equivalent

  • Memory: 4GB RAM

  • Storage: 35GB available space

Software Requirements

You'll also need the following software installed in advance:

  1. OS: Windows 7 SP1 64-bit, Windows 8.1 64-bit or Windows 10 64-bit

  2. Browser: Google Chrome, Latest Version

  3. An AWS free tier account

    aws comprehend detect-dominant-language ^
    --region us-east-1 ^
    --text "Machine Learning is fascinating."

Conventions

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " The command form is, "s3://myBucketName/myKey."

A block of code is set as follows:

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Data stored in S3 is managed as objects using an Application Programming Interface (API) accessible via the internet (HTTPS)."

Installation and Setup

Before you start this book, you will need an AWS account. You will also need to set up the AWS command-line interface (AWXSCLI), the steps for which can be found below. You will also need Python 3.6, pip and an AWS Rekognition Account throughout the book.

AWS account

For an AWS free tier account, you will need a personal email address, and credit or debit card, and a cell phone that can receive text message so you can verify your account. To create a new account, follow this link https://aws.amazon.com/free/.

AWSCLI Setup

Install AWS CLI setup from the link https://s3.amazonaws.com/aws-cli/AWSCLISetup.exe. To download the AWS CLI setup file (*includes 32-bit and 64-bit MSI installers and will automatically install the correct version). To verify install was successful open a command prompt and type aws --version.

Installing Python

Install Python 3.6 following the instructions at: https://realpython.com/installing-python/.

Installing pip

  1. To install pip, go to command prompt and type pip install awscli --upgrade --user. Verify the successful install with command "aws - -version"

  2. After installing pip, add the AWS executable to your OS's PATH environment variable. With an MSI installation, this should occur automatically, but you may need to set it manually if the "aws - -version" command is not working.

  3. To modify your PATH variable (Windows), type environment variables, and select Edit the system environment variables for your account, select the path, and add the path to the variable value field, separated by semicolons.

Installing Virtual Environment

Install the Anaconda version depending on your operating system from the following link https://www.anaconda.com/download/. Anaconda helps install what you need without conflicting packages.

  1. To check the Anaconda Distribution is up to date, type conda update conda.

  2. To create a virtual environment, type conda create -n yourenvname python=3.6 anaconda and press y to continue, this will install the Python version and all associated anaconda packaged libraries at path_to_you_anaconda_location/anaconda/envs/yourenvname.

  3. To activate the account on macOS and Linux, type source activate yourenvname and for Windows type activate yourenvname.

  4. To install the additional Python packages to a virtual environment, type conda install –n yourenvname [package].

  5. To deactivate the virtual environment type deactivate.

Configuration and Credential files

To locate the config file, see the operating specific commands below. For more information see: https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html.

Amazon Rekognition Account

You will need to create a new Amazon Rekognition free tier account where customers can analyze up to 5,000 images free each month for the first 12 months. To create the free account, follow the link https://aws.amazon.com/rekognition/

Installing the Code Bundle

Additional Resources

The code bundle for this book is also hosted on GitHub at: https://github.com/TrainingByPackt/Machine-Learning-with-AWS.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!