Coder Social home page Coder Social logo

sagemaker-churn's Introduction

Predicting Customer Churn with Amazon SageMaker

This lab is provided as part of AWS Innovate Data Edition, it has been adapted from an AWS blog post

Click here to explore the full list of hands-on labs.

Background

Losing customers is costly for any business. Identifying unhappy customers early on gives you a chance to offer them incentives to stay. This notebook describes using machine learning (ML) for the automated identification of unhappy customers, also known as customer churn prediction. ML models rarely give perfect predictions though, so this notebook is also about how to incorporate the relative costs of prediction mistakes when determining the financial outcome of using ML.

We use an example of churn that is familiar to all of us–leaving a mobile phone operator. It seems like you can always find fault with my provider du jour! And if your provider knows that I’m thinking of leaving, it can offer timely incentives–you can always use a phone upgrade or perhaps have a new feature activated–and you might just stick around. Incentives are often much more cost effective than losing and reacquiring a customer.

Setup: Launch AWS CloudFormation Stack

You will use AWS CloudFormation to deploy Amazon SageMaker in your AWS account. It will be deployed in the Sydney region. Please ensure you follow directions at the end of the lab to delete the CloudFormation stack to remove resources.

1. Login to your AWS account.

2. Right-click this link and open in a new browser tab: Launch Stack into ap-southeast-2 with CloudFormation

The CloudFormation console will be displayed, with some information already entered.

3. Click Next three times.

4. At the bottom of the page, select "I acknowledge that AWS CloudFormation might create IAM resources".

5. Click Create stack.

This will launch an Amazon SageMaker notebook instance. It will take approximately 3 minutes.

Access SageMaker

6. In the Services menu at the top of the page, select Amazon SageMaker.

7. In the left navigation pane, click Notebook instances.

A SageMaker notebook instance will be displayed.

8. Click Open Jupyter in the right-hand column.

This will open a new browser tab to the Jupyter interface.

9. Click lab_notebook.ipynb.

This will open the notebook that will be used for the lab.

Please follow the instructions in the notebook. At the conclusion of the lab, please return the page you are currently reading to delete the CloudFormation template.

Important: Clean-up

When you have completed the lab, you must delete the CloudFormation stack as follows:

10. Return to the AWS console and use the Services menu to go to CloudFormation.

11. Select the CloudFormation stack (click the circle).

12. Click Delete.

This will delete the stack and will stop charges being incurred in your AWS account.

sagemaker-churn's People

Contributors

aws-john avatar phonghuule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.