Details

Machine Learning in the AWS Cloud


Machine Learning in the AWS Cloud

Add Intelligence to Applications with Amazon SageMaker and Amazon Rekognition
1. Aufl.

von: Abhishek Mishra

CHF 43.00

Verlag: Wiley
Format: EPUB
Veröffentl.: 13.08.2019
ISBN/EAN: 9781119556725
Sprache: englisch
Anzahl Seiten: 528

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>Put the power of AWS Cloud machine learning services to work in your business and commercial applications!</b><b> </b></p> <p><i>Machine Learning in the AWS Cloud</i> introduces readers to the machine learning (ML) capabilities of the Amazon Web Services ecosystem and provides practical examples to solve real-world regression and classification problems. While readers do not need prior ML experience, they are expected to have some knowledge of Python and a basic knowledge of Amazon Web Services.</p> <p>Part One introduces readers to fundamental machine learning concepts. You will learn about the types of ML systems, how they are used, and challenges you may face with ML solutions. Part Two focuses on machine learning services provided by Amazon Web Services. You’ll be introduced to the basics of cloud computing and AWS offerings in the cloud-based machine learning space. Then you’ll learn to use Amazon Machine Learning to solve a simpler class of machine learning problems, and Amazon SageMaker to solve more complex problems.</p> <p>•    Learn techniques that allow you to preprocess data, basic feature engineering, visualizing data, and model building</p> <p>•    Discover common neural network frameworks with Amazon SageMaker</p> <p>•    Solve computer vision problems with Amazon Rekognition</p> <p>•    Benefit from illustrations, source code examples, and sidebars in each chapter</p> <p>The book appeals to both Python developers and technical/solution architects. Developers will find concrete examples that show them how to perform common ML tasks with Python on AWS. Technical/solution architects will find useful information on the machine learning capabilities of the AWS ecosystem.</p>
<p>Introduction xxiii</p> <p><b>Part 1 Fundamentals of Machine Learning 1</b></p> <p><b>Chapter 1 Introduction to Machine Learning 3</b></p> <p>What is Machine Learning? 4</p> <p>Tools Commonly Used by Data Scientists 4</p> <p>Common Terminology 5</p> <p>Real-World Applications of Machine Learning 7</p> <p>Types of Machine Learning Systems 8</p> <p>Supervised Learning 8</p> <p>Unsupervised Learning 9</p> <p>Semi-Supervised Learning 10</p> <p>Reinforcement Learning 11</p> <p>Batch Learning 11</p> <p>Incremental Learning 12</p> <p>Instance-based Learning 12</p> <p>Model-based Learning 12</p> <p>The Traditional Versus the Machine Learning Approach 13</p> <p>A Rule-based Decision System 14</p> <p>A Machine Learning–based System 17</p> <p>Summary 25</p> <p><b>Chapter 2 Data Collection and Preprocessing 27</b></p> <p>Machine Learning Datasets 27</p> <p>Scikit-learn Datasets 27</p> <p>AWS Public Datasets 30</p> <p>Kaggle.com Datasets 30</p> <p>UCI Machine Learning Repository 30</p> <p>Data Preprocessing Techniques 31</p> <p>Obtaining an Overview of the Data 31</p> <p>Handling Missing Values 42</p> <p>Creating New Features 44</p> <p>Transforming Numeric Features 46</p> <p>One-Hot Encoding Categorical Features 47</p> <p>Summary 50</p> <p><b>Chapter 3 Data Visualization with Python 51</b></p> <p>Introducing Matplotlib 51</p> <p>Components of a Plot 54</p> <p>Figure 55</p> <p>Axes55</p> <p>Axis 56</p> <p>Axis Labels 56</p> <p>Grids 57</p> <p>Title 57</p> <p>Common Plots 58</p> <p>Histograms 58</p> <p>Bar Chart 62</p> <p>Grouped Bar Chart 63</p> <p>Stacked Bar Chart 65</p> <p>Stacked Percentage Bar Chart 67</p> <p>Pie Charts 69</p> <p>Box Plot 71</p> <p>Scatter Plots 73</p> <p>Summary 78</p> <p><b>Chapter 4 Creating Machine Learning Models with Scikit-learn 79</b></p> <p>Introducing Scikit-learn 79</p> <p>Creating a Training and Test Dataset 80</p> <p>K-Fold Cross Validation 84</p> <p>Creating Machine Learning Models 86</p> <p>Linear Regression 86</p> <p>Support Vector Machines 92</p> <p>Logistic Regression 101</p> <p>Decision Trees 109</p> <p>Summary 114</p> <p><b>Chapter 5 Evaluating Machine Learning Models 115</b></p> <p>Evaluating Regression Models 115</p> <p>RMSE Metric 117</p> <p>R<sup>2</sup> Metric 119</p> <p>Evaluating Classification Models 119</p> <p>Binary Classification Models 119</p> <p>Multi-Class Classification Models 126</p> <p>Choosing Hyperparameter Values 131</p> <p>Summary 132</p> <p><b>Part 2 Machine Learning with Amazon Web Services 133</b></p> <p><b>Chapter 6 Introduction to Amazon Web Services 135</b></p> <p>What is Cloud Computing? 135</p> <p>Cloud Service Models 136</p> <p>Cloud Deployment Models 138</p> <p>The AWS Ecosystem 139</p> <p>Machine Learning Application Services 140</p> <p>Machine Learning Platform Services 141</p> <p>Support Services 142</p> <p>Sign Up for an AWS Free-Tier Account 142</p> <p>Step 1: Contact Information 143</p> <p>Step 2: Payment Information 145</p> <p>Step 3: Identity Verification 145</p> <p>Step 4: Support Plan Selection 147</p> <p>Step 5: Confirmation 148</p> <p>Summary 148</p> <p><b>Chapter 7 AWS Global Infrastructure 151</b></p> <p>Regions and Availability Zones 151</p> <p>Edge Locations 153</p> <p>Accessing AWS 154</p> <p>The AWS Management Console 156</p> <p>Summary 160</p> <p><b>Chapter 8 Identity and Access Management 161</b></p> <p>Key Concepts 161</p> <p>Root Account 161</p> <p>User 162</p> <p>Identity Federation 162</p> <p>Group 163</p> <p>Policy164</p> <p>Role 164</p> <p>Common Tasks 165</p> <p>Creating a User 167</p> <p>Modifying Permissions Associated with an Existing Group 172</p> <p>Creating a Role 173</p> <p>Securing the Root Account with MFA 176</p> <p>Setting Up an IAM Password Rotation Policy 179</p> <p>Summary 180</p> <p><b>Chapter 9 Amazon S3 181</b></p> <p>Key Concepts 181</p> <p>Bucket 181</p> <p>Object Key 182</p> <p>Object Value 182</p> <p>Version ID 182</p> <p>Storage Class 182</p> <p>Costs 183</p> <p>Subresources 183</p> <p>Object Metadata 184</p> <p>Common Tasks 185</p> <p>Creating a Bucket 185</p> <p>Uploading an Object 189</p> <p>Accessing an Object 191</p> <p>Changing the Storage Class of an Object 195</p> <p>Deleting an Object 196</p> <p>Amazon S3 Bucket Versioning 197</p> <p>Accessing Amazon S3 Using the AWS CLI 199</p> <p>Summary 200</p> <p><b>Chapter 10 Amazon Cognito 201</b></p> <p>Key Concepts 201</p> <p>Authentication 201</p> <p>Authorization 201</p> <p>Identity Provider 202</p> <p>Client 202</p> <p>OAuth 2.0 202</p> <p>OpenID Connect 202</p> <p>Amazon Cognito User Pool 202</p> <p>Identity Pool 203</p> <p>Amazon Cognito Federated Identities 203</p> <p>Common Tasks 204</p> <p>Creating a User Pool 204</p> <p>Retrieving the App Client Secret 213</p> <p>Creating an Identity Pool 214</p> <p>User Pools or Identity Pools: Which One Should You Use? 218</p> <p>Summary 219</p> <p><b>Chapter 11 Amazon DynamoDB 221</b></p> <p>Key Concepts 221</p> <p>Tables 222</p> <p>Global Tables 222</p> <p>Items 222</p> <p>Attributes 222</p> <p>Primary Keys 222</p> <p>Secondary Indexes 223</p> <p>Queries 223</p> <p>Scans 223</p> <p>Read Consistency 224</p> <p>Read/Write Capacity Modes 224</p> <p>Common Tasks 225</p> <p>Creating a Table 225</p> <p>Adding Items to a Table 228</p> <p>Creating an Index 231</p> <p>Performing a Scan 233</p> <p>Performing a Query 235</p> <p>Summary 236</p> <p><b>Chapter 12 AWS Lambda 237</b></p> <p>Common Use Cases for Lambda 237</p> <p>Key Concepts 238</p> <p>Supported Languages 238</p> <p>Lambda Functions 238</p> <p>Programming Model 239</p> <p>Execution Environment 243</p> <p>Service Limitations 244</p> <p>Pricing and Availability 244</p> <p>Common Tasks 244</p> <p>Creating a Simple Python Lambda Function Using the AWS Management Console 244</p> <p>Testing a Lambda Function Using the AWS Management Console 250</p> <p>Deleting an AWS Lambda Function Using the AWS Management Console 253</p> <p>Summary 255</p> <p><b>Chapter 13 Amazon Comprehend 257</b></p> <p>Key Concepts 257</p> <p>Natural Language Processing 257</p> <p>Topic Modeling 259</p> <p>Language Support 259</p> <p>Pricing and Availability 259</p> <p>Text Analysis Using the Amazon Comprehend Management Console 260</p> <p>Interactive Text Analysis with the AWS CLI 262</p> <p>Entity Detection with the AWS CLI 263</p> <p>Key Phrase Detection with the AWS CLI 264</p> <p>Sentiment Analysis with the AWS CLI 265</p> <p>Using Amazon Comprehend with AWS Lambda 266</p> <p>Summary 274</p> <p><b>Chapter 14 Amazon Lex 275</b></p> <p>Key Concepts 275</p> <p>Bot 275</p> <p>Client Application 276</p> <p>Intent 276</p> <p>Slot 276</p> <p>Utterance 277</p> <p>Programming Model 277</p> <p>Pricing and Availability 278</p> <p>Creating an Amazon Lex Bot 278</p> <p>Creating Amazon DynamoDB Tables 278</p> <p>Creating AWS Lambda Functions 285</p> <p>Creating the Chatbot 304</p> <p>Customizing the AccountOverview Intent 308</p> <p>Customizing the ViewTransactionList Intent 312</p> <p>Testing the Chatbot 314</p> <p>Summary 315</p> <p><b>Chapter 15 Amazon Machine Learning 317</b></p> <p>Key Concepts 317</p> <p>Datasources 318</p> <p>ML Model 318</p> <p>Regularization 319</p> <p>Training Parameters 319</p> <p>Descriptive Statistics 320</p> <p>Pricing and Availability 321</p> <p>Creating Datasources 321</p> <p>Creating the Training Datasource 324</p> <p>Creating the Test Datasource 330</p> <p>Viewing Data Insights 332</p> <p>Creating an ML Model 337</p> <p>Making Batch Predictions 341</p> <p>Creating a Real-Time Prediction Endpoint for Your Machine Learning Model 346</p> <p>Making Predictions Using the AWS CLI 347</p> <p>Using Real-Time Prediction Endpoints with Your Applications 349</p> <p>Summary 350</p> <p><b>Chapter 16 Amazon SageMaker 353</b></p> <p>Key Concepts 353</p> <p>Programming Model 354</p> <p>Amazon SageMaker Notebook Instances 354</p> <p>Training Jobs 354</p> <p>Prediction Instances 355</p> <p>Prediction Endpoint and Endpoint Configuration 355</p> <p>Amazon SageMaker Batch Transform 355</p> <p>Data Channels 355</p> <p>Data Sources and Formats 356</p> <p>Built-in Algorithms 356</p> <p>Pricing and Availability 357</p> <p>Creating an Amazon SageMaker Notebook Instance 357</p> <p>Preparing Test and Training Data 362</p> <p>Training a Scikit-learn Model on an Amazon SageMaker Notebook Instance 364</p> <p>Training a Scikit-learn Model on a Dedicated Training Instance 368</p> <p>Training a Model Using a Built-in Algorithm on a Dedicated Training Instance 379</p> <p>Summary 384</p> <p><b>Chapter 17 Using Google TensorFlow with Amazon SageMaker 387</b></p> <p>Introduction to Google TensorFlow 387</p> <p>Creating a Linear Regression Model with Google TensorFlow 390</p> <p>Training and Deploying a DNN Classifier Using the TensorFlow Estimators API and Amazon SageMaker 408</p> <p>Summary 419</p> <p><b>Chapter 18 Amazon Rekognition 421</b></p> <p>Key Concepts 421</p> <p>Object Detection 421</p> <p>Object Location 422</p> <p>Scene Detection 422</p> <p>Activity Detection 422</p> <p>Facial Recognition 422</p> <p>Face Collection 422</p> <p>API Sets 422</p> <p>Non-Storage and Storage-Based Operations 423</p> <p>Model Versioning 423</p> <p>Pricing and Availability 423</p> <p>Analyzing Images Using the Amazon Rekognition Management Console 423</p> <p>Interactive Image Analysis with the AWS CLI 428</p> <p>Using Amazon Rekognition with AWS Lambda 433</p> <p>Creating the Amazon DynamoDB Table 433</p> <p>Creating the AWS Lambda Function 435</p> <p>Summary 444</p> <p><b>Appendix A Anaconda and Jupyter Notebook Setup 445</b></p> <p>Installing the Anaconda Distribution 445</p> <p>Creating a Conda Python Environment 447</p> <p>Installing Python Packages 449</p> <p>Installing Jupyter Notebook 451</p> <p>Summary 454</p> <p><b>Appendix B AWS Resources Needed to Use This Book 455</b></p> <p>Creating an IAM User for Development 455</p> <p>Creating S3 Buckets 458</p> <p><b>Appendix C Installing and Configuring the AWS CLI 461</b></p> <p>Mac OS Users 461</p> <p>Installing the AWS CLI 461</p> <p>Configuring the AWS CLI 462</p> <p>Windows Users 464</p> <p>Installing the AWS CLI4 64</p> <p>Configuring the AWS CLI 465</p> <p><b>Appendix D Introduction to NumPy and Pandas 467</b></p> <p>NumPy 467</p> <p>Creating NumPy Arrays 467</p> <p>Modifying Arrays 471</p> <p>Indexing and Slicing 474</p> <p>Pandas 475</p> <p>Creating Series and Dataframes 476</p> <p>Getting Dataframe Information 478</p> <p>Selecting Data 481</p> <p>Index 485</p>
<p><b>ABOUT THE AUTHOR</b> <p><b>ABHISHEK MISHRA</b> has more than 19 years' experience across a broad range of enterprise technologies. He consults as a security and fraud solution architect with Lloyds Banking group PLC in London. He is the author of <i>Amazon Web Services for Mobile Developers.</i>
<p><b>Harness the power of AWS Cloud machine learning services</b> <p>Recent advances in storage, CPU, and GPU technology, coupled with the ease with which you can create virtual computing resources in the cloud, and the availability of Python libraries such as Pandas, Matplotlib, TensorFlow, and Scikit-learn, have made it possible to build and deploy machine learning (ML) systems at scale and get results in real-time. <i>Machine Learning in the AWS Cloud</i> offers an introduction to the machine learning capabilities of the Amazon Web Services ecosystem. The book is filled with illustrative examples that are designed to help with solutions to real-world regression and classification challenges. While prior experience with ML is not a requirement, some knowledge of Python and a basic knowledge of Amazon Web Services is a plus. <p>The author—a noted expert on the topic—includes a review of fundamental machine learning concepts and explores the various types of ML systems. He explains how they are used, and the challenges you may face when grappling with ML solutions. The book highlights the machine learning services provided by Amazon Web Services as well as providing an overview of the basics of cloud computing and AWS offerings in the cloud-based machine learning space. The author walks you through the step-by-step process for using Amazon's machine learning services to implement image recognition, build chatbots, and train and deploy custom machine learning models to the AWS cloud. <ul> <li>Improve your knowledge of the basics of machine learning and learn to use NumPy, Pandas, and Scikit-learn<sup>®</sup></li> <li>Learn to visualize data with Matplotlib</li> <li>Learn to train and deploy machine learning models with Amazon SageMaker</li> <li>Learn to use Amazon Machine Learning</li> <li>Learn to use Amazon Lex<sup>®</sup>, Amazon Comprehend, and Amazon Rekognition</li> <li>Learn about the basics of AWS infrastructure and commonly used services such as Amazon S3, Amazon DynamoDB, Amazon Cognito, and AWS Lambda</li> </ul> <p><b>ABOUT AMAZON WEB SERVICES</b> <p>Amazon Web Services (AWS) is a secure cloud services platform that offers a broad set of global compute, storage, database, analytics, application, and deployment services to help businesses scale and grow. AWS Cloud products and solutions aid business organizations in building sophisticated applications with increased flexibility, scalability, and reliability.

Diese Produkte könnten Sie auch interessieren:

Quantifiers in Action
Quantifiers in Action
von: Antonio Badia
PDF ebook
CHF 118.00
Managing and Mining Uncertain Data
Managing and Mining Uncertain Data
von: Charu C. Aggarwal
PDF ebook
CHF 118.00