thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

AI & Machine Learning · Intermediate

Class Imbalance

A dataset where one class is far more frequent than others, which can bias models toward the majority class.

Definition

With imbalance, accuracy is misleading because predicting the majority class scores well. Remedies include resampling (oversampling the minority, undersampling the majority, SMOTE), class weights, threshold tuning and metrics such as precision, recall, F1 and PR AUC.

Example

Fraud representing 0.5% of transactions.

Exam tip

Accuracy is the wrong metric for imbalanced data; choose recall, F1 or PR AUC.

Related terms