Book Image

Applied Supervised Learning with R

By : Karthik Ramasubramanian, Jojo Moolayil
Book Image

Applied Supervised Learning with R

By: Karthik Ramasubramanian, Jojo Moolayil

Overview of this book

R provides excellent visualization features that are essential for exploring data before using it in automated learning. Applied Supervised Learning with R helps you cover the complete process of employing R to develop applications using supervised machine learning algorithms for your business needs. The book starts by helping you develop your analytical thinking to create a problem statement using business inputs and domain research. You will then learn different evaluation metrics that compare various algorithms, and later progress to using these metrics to select the best algorithm for your problem. After finalizing the algorithm you want to use, you will study the hyperparameter optimization technique to fine-tune your set of optimal parameters. The book demonstrates how you can add different regularization terms to avoid overfitting your model. By the end of this book, you will have gained the advanced skills you need for modeling a supervised machine learning algorithm that precisely fulfills your business needs.
Table of Contents (12 chapters)
Applied Supervised Learning with R
Preface

Introducing AWS SageMaker


Amazon SageMaker is a cloud service that provides developers and data scientists with a platform to build, train, and deploy machine learning models quickly. It is an extremely effective service in aiding data scientists with limited development knowledge to deploy highly scalable ML models while abstracting the entire complexities of the infrastructure and underlying services.

SageMaker automates the entire process of deploying a model as an API with the defined resources and creates an endpoint that can be used for inferencing within the other AWS services. To enable the endpoint to be inferenced by other external applications, we would need to orchestrate the flow of requests using two other AWS services, called AWS API Gateway and AWS Lambda. We will explore these new services later in the chapter.

Now, let's begin deploying our model using AWS SageMaker.

Deploying an ML Model Endpoint Using SageMaker

SageMaker, by default, doesn't provide a direct way to create...