Index Ai Academy
Glossary · Phase 3 · Machine learning

Class imbalance

Also written: imbalanced classes, imbalanced data

One class being far rarer than another, as fraud is among payments. It makes accuracy misleading and the choice of threshold important.

Try it now

Move the threshold left of 0.5 and watch recall rise. Then lower the share of fraud and watch accuracy stop telling you anything.

Learn it properly

Imbalanced classes in depth · Rare classes measured: why rebalancing mostly moves the threshold, correcting inflated probabilities, average precision against AUC, why the count of rare cases matters, and thresholds from costs. About 45 minutes.

Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 3 · lesson 45 min

Imbalanced classes in depth

Rare classes measured: why rebalancing mostly moves the threshold, correcting inflated probabilities, average precision against AUC, why the count of rare cases matters, and thresholds from costs.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write