Machine Learning with Amazon SageMaker Cookbook
eBook - ePub

Machine Learning with Amazon SageMaker Cookbook

Joshua Arvin Lat

Condividi libro
  1. 762 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Machine Learning with Amazon SageMaker Cookbook

Joshua Arvin Lat

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

A step-by-step solution-based guide to preparing building, training, and deploying high-quality machine learning models with Amazon SageMakerKey Features• Perform ML experiments with built-in and custom algorithms in SageMaker• Explore proven solutions when working with TensorFlow, PyTorch, Hugging Face Transformers, and scikit-learn• Use the different features and capabilities of SageMaker to automate relevant ML processesBook DescriptionAmazon SageMaker is a fully managed machine learning (ML) service that helps data scientists and ML practitioners manage ML experiments. In this book, you'll use the different capabilities and features of Amazon SageMaker to solve relevant data science and ML problems. This step-by-step guide features 80 proven recipes designed to give you the hands-on machine learning experience needed to contribute to real-world experiments and projects. You'll cover the algorithms and techniques that are commonly used when training and deploying NLP, time series forecasting, and computer vision models to solve ML problems. You'll explore various solutions for working with deep learning libraries and frameworks such as TensorFlow, PyTorch, and Hugging Face Transformers in Amazon SageMaker. You'll also learn how to use SageMaker Clarify, SageMaker Model Monitor, SageMaker Debugger, and SageMaker Experiments to debug, manage, and monitor multiple ML experiments and deployments. Moreover, you'll have a better understanding of how SageMaker Feature Store, Autopilot, and Pipelines can meet the specific needs of data science teams. By the end of this book, you'll be able to combine the different solutions you've learned as building blocks to solve real-world ML problems.What you will learn• Train and deploy NLP, time series forecasting, and computer vision models to solve different business problems• Push the limits of customization in SageMaker using custom container images• Use AutoML capabilities with SageMaker Autopilot to create high-quality models• Work with effective data analysis and preparation techniques• Explore solutions for debugging and managing ML experiments and deployments• Deal with bias detection and ML explainability requirements using SageMaker Clarify• Automate intermediate and complex deployments and workflows using a variety of solutionsWho this book is forThis book is for developers, data scientists, and machine learning practitioners interested in using Amazon SageMaker to build, analyze, and deploy machine learning models with 80 step-by-step recipes. All you need is an AWS account to get things running. Prior knowledge of AWS, machine learning, and the Python programming language will help you to grasp the concepts covered in this book more effectively.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Machine Learning with Amazon SageMaker Cookbook è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Machine Learning with Amazon SageMaker Cookbook di Joshua Arvin Lat in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatik e Datenmodellierung- & design. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2021
ISBN
9781800566125
Edizione
1
Argomento
Informatik

Chapter 1: Getting Started with Machine Learning Using Amazon SageMaker

Machine learning (ML) is one of the most important topics in the world right now. Through the use of different algorithms and models, it can solve different practical problems and requirements, such as anomaly detection, forecasting, spam detection, image classification, and more. Performing a few experiments in your local machine will help get things started. However, once we need to deal with end-to-end experiments involving larger datasets, deep learning requirements, and production-grade model deployments, we will need a more dedicated set of solutions to help us effectively manage these experiments.
This is what Amazon SageMaker aims to accomplish. Amazon SageMaker is a fully managed ML service that brings together different solutions to speed up the process of preparing, building, training, and deploying ML models. As we go through each of the chapters in this book, we will see how it helps get things done much faster across the different phases of the ML process.
Figure 1.1 – Chapter 1 recipes
Figure 1.1 – Chapter 1 recipes
In this introductory chapter, we will perform a simplified end-to-end ML experiment using Amazon SageMaker. The goal of this chapter is to help get our feet wet and understand what it can do to help us train and deploy ML models quickly. As seen in Figure 1.1, we will see how Amazon SageMaker fits in the ML process. With a sample dataset, we will work our way toward building, analyzing, and deploying a model that predicts a professional's salary using the number of months of relevant managerial experience.
We will start by launching an Amazon SageMaker notebook instance where we will run our experiments. Once we have everything set up, we will visualize the data using the pandas data analysis and manipulation library and the matplotlib data visualization library. After that, we will use the SageMaker Python SDK when training our linear regression model. Once we have generated the model, we will then use the deep learning framework Apache MXNet to load the model file created and extract the parameters of the linear model. We will also use the metrics utilities from the sklearn library to evaluate the regression model we have prepared in this chapter. After we have performed the model evaluation step, we will use the SageMaker Python SDK to deploy our model to an inference endpoint. Finally, we will use the SageMakerRuntime client from boto3 to invoke our deployed Amazon SageMaker inference endpoint.
We will cover the following recipes in this chapter:
  • Launching an Amazon SageMaker notebook instance
  • Checking the versions of the SageMaker Python SDK and the AWS CLI
  • Preparing the Amazon S3 bucket and the training dataset for the linear regression experiment
  • Visualizing and understanding your data in Python
  • Training your first model in Python
  • Loading a Linear Learner model with Apache MXNet in Python
  • Evaluating the model in Python
  • Deploying your first model in Python
  • Invoking an Amazon SageMaker model endpoint with the SageMakerRuntime client from boto3
Once we have completed the recipes in this chapter, we will have a good idea of how we can use Amazon SageMaker in the different phases of the ML process. With that in mind, let's get things started!

Technical requirements

As long as you have an existing AWS account, the next steps will be a piece of cake. If you still do not have an AWS account, feel free to check the AWS Free Tier page and click Create a Free Account: https://aws.amazon.com/free/. After clicking the Create a Free Account button, you will be redirected to the Sign up for AWS page, as shown in Figure 1.2:
Figure 1.2 – Sign up for AWS
Figure 1.2 – Sign up for AWS
All you need to do is complete the steps here to complete the sign-up process. The Jupyter notebooks, source code, and CSV files used for each chapter are available in this repository: https://github.com/PacktPublishing/Machine-Learning-with-Amazon-SageMaker-Cookbook/tree/master/Chapter01.
Check out the following link to see the relevant Code in Action video:
https://bit.ly/38WpNDf

Launching an Amazon SageMaker Notebook Instance

In this recipe, we will set up an Amazon SageMaker notebook instance where we can run our ML experiments using Jupyter Notebooks. The SageMaker notebook instance is a fully managed ML compute instance running a collection of tools and applications such as the Jupyter Notebook app. With several tools and libraries already installed and ready to use, we can go straight into working on our ML experiments without having to worry about the installation and maintenanc...

Indice dei contenuti