Machine Learning with Amazon SageMaker Cookbook
eBook - ePub

Machine Learning with Amazon SageMaker Cookbook

Joshua Arvin Lat

Buch teilen
  1. 762 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Machine Learning with Amazon SageMaker Cookbook

Joshua Arvin Lat

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

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.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Machine Learning with Amazon SageMaker Cookbook als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Machine Learning with Amazon SageMaker Cookbook von Joshua Arvin Lat im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatik & Datenmodellierung- & design. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2021
ISBN
9781800566125

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...

Inhaltsverzeichnis