LESSON 4.56 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Class imbalance remedies
Watch four remedies move a fraud detector's line toward the rare class.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 4.56 · IMBALANCE BAY64 NORMAL · 8 FRAUD · 1:8
01
Stage 1 of 6 · Imbalanced data
The training set has 64 normal squares and 8 fraud dots. This class imbalance is 1:8.
Explain it simply
Each square is a normal card payment, and each dot is a fraud. There are 8 squares for every dot. That gap is called class imbalance. Fraud is rare in real life too, so the test set has the same mix.
A plane with 64 normal squares in the lower left and 8 fraud dots in the upper right. Two bars count each class.
square: normal payment, dot: frauddropped rowSMOTE linkcopies, class weight sdecision boundary, test scores
Toy: 64 normal payments, 16, 8 or 4 frauds, seeded
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The imbalance is the number of normal rows per fraud row.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.