About this lab
You are a data scientist at an e-commerce company where customer churn has spiked 25% over the last two quarters. The marketing team is running retention campaigns blindly, offering discounts to everyone instead of targeting the customers actually about to leave. They need a model that scores every customer by churn risk so they can focus their budget where it matters.
In this lab, you will build that model end-to-end on Amazon SageMaker. Starting with customer behavioral data (purchase history, engagement metrics, support interactions), you will train a classification model with Scikit-learn, evaluate its performance, register it in SageMaker Model Registry for versioning, and run batch predictions on new customers. By the end, marketing has a scored list they can act on immediately.
Lab details
- Level: Intermediate
- Cloud: AWS
- Domain: Data Science & MLOps
- Duration: 90 minutes
What you will learn
- Prepare and explore customer data for churn prediction
- Create a SageMaker notebook instance for development
- Train a Scikit-learn classifier using SageMaker training jobs
- Evaluate model performance with classification metrics
- Register trained models in SageMaker Model Registry
- Run batch transform jobs and interpret predictions for business action
Concepts covered
- End-to-end ML workflow on AWS
- Model training with Scikit-learn on SageMaker
- Model versioning with SageMaker Model Registry
- Batch inference pipelines
Technologies used
- Amazon SageMaker
- SageMaker Model Registry
- SageMaker Python SDK
- Scikit-learn
- Jupyter Notebooks
- Amazon S3
Prerequisites
- AWS account with SageMaker access
- Basic Python programming knowledge
- Understanding of machine learning fundamentals
- Familiarity with classification algorithms
Topics
- AWS
- Amazon SageMaker
- S3
- Python
- ML