SMOTE: Synthetic Minority Oversampling

medium
Unit 15 · Interpretability II0/2 to milestone

With 2% fraud, a model can score 98% accuracy by always predicting "legit". SMOTE creates synthetic minority examples by interpolating between real ones and their nearest neighbours.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
SMOTE: Synthetic Minority Oversampling · TechGradify