Module lessons (5/5)
Capstone: Imbalanced classification
A complete classification project: stratified splits, PR AUC, and cost-sensitive thresholds.
What you'll learn in this lesson
- Build an end-to-end binary classification pipeline for imbalanced tabular datasets.
- Track honest metrics: PR AUC, Recall, and Balanced Accuracy.
- Optimize the classification probability threshold based on business cost-benefit trade-offs.
Overview
In almost every critical business application—fraud detection, cyber security, rare disease diagnosis, customer churn—the classes are heavily imbalanced. The positive class of interest represents only 1% to 10% of all observations.
If 98% of credit card transactions are legitimate and 2% are fraudulent, a model that predicts "legitimate" for every transaction achieves 98% accuracy while catching 0% of fraud.
Sections covered in this lesson
- 1Capstone Project 2: High-stakes imbalanced classification
- 2The imbalanced workflow
- 3Practice
- 4Check your understanding
Unlock "Capstone: Imbalanced classification" and the full Machine Learning: from first principles to practice curriculum
A complete classification project: stratified splits, PR AUC, and cost-sensitive thresholds.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.