Machine Learning Lens - AWS Documentation

3y ago
25 Views
2 Downloads
1.86 MB
61 Pages
Last View : 14d ago
Last Download : 3m ago
Upload by : Allyson Cromer
Transcription

Machine Learning LensAWS Well-Architected Framework

Machine Learning Lens AWS Well-Architected FrameworkMachine Learning Lens: AWS Well-Architected FrameworkCopyright 2021 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.Amazon's trademarks and trade dress may not be used in connection with any product or service that is notAmazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages ordiscredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who mayor may not be affiliated with, connected to, or sponsored by Amazon.

Machine Learning Lens AWS Well-Architected FrameworkTable of Contents. vAbstract . 1Abstract . 1Introduction . 2Definitions . 3Machine Learning Stack . 3AI Services . 3ML Services . 3ML Frameworks and Infrastructure . 4Combining Levels . 4Phases of ML Workloads . 4Business Goal Identification . 5ML Problem Framing . 5Data Collection . 6Data Preparation . 6Data Visualization and Analytics . 7Feature Engineering . 8Model Training . 9Model Evaluation and Business Evaluation . 10General Design Principles . 12Scenarios . 13Build Intelligent Applications using AWS AI Services . 13Reference Architecture . 14Adding Sophistication . 15Using AI services with your Data . 16Use Managed ML Services to Build Custom ML Models . 16Reference Architecture . 17Managed ETL Services for Data Processing . 18Reference Architecture . 18Machine Learning on Edge and on Multiple Platforms . 19Reference Architecture . 20Model Deployment Approaches . 21Standard Deployment . 22Blue/Green Deployments . 22Canary Deployment . 24A/B Testing . 24The Pillars of the Well-Architected Framework . 26Operational Excellence Pillar . 26Design Principles . 26Best Practices . 27Resources . 33Security Pillar . 33Design Principles . 33Best Practices . 34Resources . 39Reliability Pillar . 39Design Principles . 39Best Practices . 39Resources . 43Performance Efficiency Pillar . 43Design Principles . 43Best Practices . 44Resources . 46Cost Optimization Pillar . 46iii

Machine Learning Lens AWS Well-Architected FrameworkDesign Principles .Best Practices .Resources .Conclusion .Contributors .Further Reading .Document Revisions .Notices .iv4647515253545556

Machine Learning Lens AWS Well-Architected FrameworkThis whitepaper is in the process of being updated.v

Machine Learning Lens AWS Well-Architected FrameworkAbstractMachine Learning Lens - AWS WellArchitected FrameworkPublication date: April 2020 (Document Revisions (p. 55))AbstractThis document describes the Machine Learning Lens for the AWS Well-Architected Framework. Thedocument includes common machine learning (ML) scenarios and identifies key elements to ensure thatyour workloads are architected according to best practices.1

Machine Learning Lens AWS Well-Architected FrameworkIntroductionThe AWS Well-Architected Framework helps you understand the pros and cons of decisions you makewhile building systems on AWS. Using the Framework, allows you to learn architectural best practicesfor designing and operating reliable, secure, efficient, and cost-effective systems in the cloud. It providesa way for you to consistently measure your architectures against best practices and identify areas forimprovement. We believe that having well-architected systems greatly increases the likelihood ofbusiness success.In the Machine Learning Lens, we focus on how to design, deploy, and architect your machine learningworkloads in the AWS Cloud. This lens adds to the best practices included in the Well-ArchitectedFramework. For brevity, we only include details in this lens that are specific to machine learning (ML)workloads. When designing ML workloads, you should use applicable best practices and questions fromthe AWS Well-Architected Framework whitepaper.This lens is intended for those in a technology role, such as chief technology officers (CTOs), architects,developers, and operations team members. After reading this paper, you will understand the bestpractices and strategies to use when you design and operate ML workloads on AWS.2

Machine Learning Lens AWS Well-Architected FrameworkMachine Learning StackDefinitionsThe Machine Learning Lens is based on five pillars: operational excellence, security, reliability,performance efficiency, and cost optimization. AWS provides multiple core components for MLworkloads that enable you to design robust architectures for your ML applications.There are two areas that you should evaluate when you build a machine learning workload.Topics Machine Learning Stack (p. 3) Phases of ML Workloads (p. 4)Machine Learning StackWhen you build an ML-based workload in AWS, you can choose from different levels of abstraction tobalance speed to market with level of customization and ML skill level: Artificial Intelligence (AI) Services ML Services ML Frameworks and InfrastructureArtificial Intelligence (AI) ServicesThe AI Services level provides fully managed services that enable you to quickly add ML capabilitiesto your workloads using API calls. This gives you the ability to build powerful, intelligent applicationswith capabilities such as computer vision, speech, natural language, chatbots, predictions, andrecommendations. Services at this level are based on pre-trained or automatically trained machinelearning and deep learning models, so that you don’t need ML knowledge to use them.AWS provides many AI services that you can integrate with your applications through API calls. Forexample, you can use Amazon Translate to translate or localize text content, Amazon Polly for text-tospeech conversion, and Amazon Lex for building conversational chat bots.ML ServicesThe ML Services level provides managed services and resources for machine learning to developers,data scientists, and researchers. These types of services enable you to label data, build, train, deploy,and operate custom ML models without having to worry about the underlying infrastructure needs. Theundifferentiated heavy lifting of infrastructure management is managed by the cloud vendor, so thatyour data science teams can focus on what they do best.In AWS, Amazon SageMaker enables developers and data scientists to quickly and easily build, train,and deploy ML models at any scale. For example, Amazon SageMaker Ground Truth helps you buildhighly accurate ML training datasets quickly and Amazon SageMaker Neo enables developers to train MLmodels once, and then run them anywhere in the cloud or at the edge.3

Machine Learning Lens AWS Well-Architected FrameworkML Frameworks and InfrastructureML Frameworks and InfrastructureThe ML Frameworks and Infrastructure level is intended for expert machine learning practitioners. Thesepeople are comfortable with designing their own tools and workflows to build, train, tune, and deploymodels, and are accustomed to working at the framework and infrastructure level.In AWS, you can use open source ML frameworks, such as TensorFlow, PyTorch, and Apache MXNet. TheDeep Learning AMI and Deep Learning Containers in this level have multiple ML frameworks preinstalledthat are optimized for performance. This optimization means that they are always ready to be launchedon the powerful, ML-optimized compute infrastructure, such as Amazon EC2 P3 and P3dn instances, thatprovides a boost of speed and efficiency to machine learning workloads.Combining LevelsWorkloads often use services from multiple levels of the ML stack. Depending on the business use case,services and infrastructure from the different levels can be combined to satisfy multiple requirementsand achieve multiple business goals. For example, you can use AI services for sentiment analysis ofcustomer reviews on your retail website, and use managed ML services to build a custom model usingyour own data to predict future sales.Phases of ML WorkloadsBuilding and operating a typical ML workload is an iterative process, and consists of multiple phases. Weidentify these phases loosely based on the open standard process model for Cross Industry StandardProcess Data Mining (CRISP-DM) as a general guideline. CRISP-DM is used as a baseline because it’s aproven tool in the industry and is application neutral, which makes it an easy-to-apply methodology thatis applicable to a wide variety of ML pipelines and workloads.The end-to-end machine learning process includes the following phases:Figure 1 – End-to-End Machine Learning ProcessTopics Business Goal Identification (p. 5) ML Problem Framing (p. 5) Data Collection (p. 6) Data Preparation (p. 6) Data Visualization and Analytics (p. 7) Feature Engineering (p. 8) Model Training (p. 9)4

Machine Learning Lens AWS Well-Architected FrameworkBusiness Goal Identification Model Evaluation and Business Evaluation (p. 10)Business Goal IdentificationBusiness Goal Identification is the most important phase. An organization considering ML should havea clear idea of the problem to be solved, and the business value to be gained by solving that problemusing ML. You must be able to measure business value against specific business objectives and successcriteria. While this holds true for any technical solution, this step is particularly challenging whenconsidering ML solutions because ML is a disruptive technology.After you determine your criteria for success, evaluate your organization's ability to realistically executetoward that target. The target should be achievable and provide a clear path to production.You will want to validate that ML is the appropriate approach to deliver your business goal. Evaluate allof the options that you have available for achieving the goal, how accurate the resulting outcomes wouldbe, and the cost and scalability of each approach when deciding your approach.For an ML-based approach to be successful, having an abundance of relevant, high-quality data that isapplicable to the algorithm that you are trying to train is essential. Carefully evaluate the availabilityof the data to make sure that the correct data sources are available and accessible. For example, youneed training data to train and benchmark your ML model, but you also need data from the business toevaluate the value of an ML solution.Apply these best practices: Understand business requirements Form a business question Determine a project’s ML feasibility and data requirements Evaluate the cost of data acquisition, training, inference, and wrong predictions Review proven or published work in similar domains, if available Determine key performance metrics, including acceptable errors Define the machine learning task based on the business question Identify critical, must have featuresML Problem FramingIn this phase, the business problem is framed as a machine learning problem: what is observed andwhat should be predicted (known as a label or target variable). Determining what to predict and howperformance and error metrics need to be optimized is a key step in ML.For example, imagine a scenario where a manufacturing company wants to identify which products willmaximize profits. Reaching this business goal partially depends on determining the right number ofproducts to produce. In this scenario, you want to predict the future sales of the product, based on pastand current sales. Predicting future sales becomes the problem to solve, and using ML is one approachthat can be used to solve it.Apply these best practices: Define criteria for a successful outcome of the project Establish an observable and quantifiable performance metric for the project, such as accuracy,prediction latency, or minimizing inventory value Formulate the ML question in terms of inputs, desired outputs, and the performance metric to beoptimized5

Machine Learning Lens AWS Well-Architected FrameworkData Collection Evaluate whether ML is a feasible and appropriate approach Create a data sourcing and data annotation objective, and a strategy to achieve it Start with a simple model that is easy to interpret, and which makes debugging more manageableData CollectionIn ML workloads, the data (inputs and corresponding desired output) serves three important functions: Defining the goal of the system: the output representation and the relationship of each output to eachinput, by means of input/output pairs Training the algorithm that will associate inputs to outputs Measuring the performance of the trained model, and evaluating whether the performance target wasmetThe first step is to identify what data is needed for your ML model, and evaluate the various meansavailable for collecting that data to train your model.As organizations collect and analyze increasingly large amounts of data, traditional on-premisessolutions for data storage, data management, and analytics can no longer keep pace. A cloud-baseddata lake is a centralized repository that allows you to store all your structured and unstructured dataregardless of scale. You can store your data as-is, without first having to structure the data, and rundifferent types of analytics—from dashboards and visualizations to big data processing, real-timeanalytics, and ML—to guide you to better decisions.AWS provides you with a number of ways to i

In the Machine Learning Lens, we focus on how to design, deploy, and architect your machine learning workloads in the AWS Cloud. This lens adds to the best practices included in the Well-Architected Framework. For brevity, we only include details in this lens that are specific to machine learning (ML) workloads.

Related Documents:

4 AWS Training & Services AWS Essentials Training AWS Cloud Practitioner Essentials (CP-ESS) AWS Technical Essentials (AWSE) AWS Business Essentials (AWSBE) AWS Security Essentials (SEC-ESS) AWS System Architecture Training Architecting on AWS (AWSA) Advanced Architecting on AWS (AWSAA) Architecting on AWS - Accelerator (ARCH-AX) AWS Development Training

AWS SDK for JavaScript AWS SDK for JavaScript code examples AWS SDK for .NET AWS SDK for .NET code examples AWS SDK for PHP AWS SDK for PHP code examples AWS SDK for Python (Boto3) AWS SDK for Python (Boto3) code examples AWS SDK for Ruby AWS SDK for Ruby co

AWS Directory Amazon Aurora R5 instance Service AWS Server Migration Service AWS Snowball AWS Deep Amazon GameLift Learning AMIs AWS CodeBuild AWS CodeDeploy AWS Database Migration Service Amazon Polly 26 26 20 40 12 0 5 10 15 20 25 30 35 40 45 2018 Q1 2018 Q2 2018 Q3 2018 Q4 2019 Q1 New Services& Features on AWS

AWS instances with Nessus while in development and operations, before publishing to AWS users. Tenable Network Security offers two products on the AWS environment: Nessus for AWS is a Nessus Enterprise instance already available in the AWS Marketplace. Tenable Nessus for AWS provides pre-authorized scanning in the AWS cloud via AWS instance ID.

Product numbers correct as of January 2013. These may be subject to change. 1 Lens Hood 2 Lens Cap 3 Lens Rear Cap (The lens rear cap and lens cap are attached to the interchangeable lens at the time of purchase.) Attaching/Detaching the Lens Refer also to the camera's owner's manual for attaching and detaching the lens. Attaching the .

BSR/AWS B5.16-200x, Specification for the Qualification of Welding Engineers (revision of ANSI/AWS B5.16-2001) Obtain an electronic copy from: roneill@aws.org Order from: R. O’Neill, AWS; roneill@aws.org Send comments (with copy to BSR) to: Andrew Davis, AWS; adavis@aws.org; roneill@aws.org Single copy price: 25.00

pa/1g pa/1f pb/2f pc/2g pd/4f 156 pf/3g pf/3f pg/3g pg/3f en: pcfileur welding positions aws: 1g en: pa aws: 1f aws: 2g en: pc aws: 2f en: pb aws: 3g en: pg down en: pf up aws: 3f down en: pf aws: 4g en: pe aws: 4f en: pd 156

Am I my Brother’s Keeper? Acts 15:19-35 Introduction: Since the beginning of time when the first man and woman rebelled against God, mankind has been separated from God. Every person since that time has been born into that rebellion and sin. Because of sin, people are separated from God and are unable to have a right relationship with Him or each other. Ill. of evil and suffering Inside of .