Question 7 of 10Pro Only

What is class imbalance, and why is it a problem for machine learning models? What techniques can you use to address imbalanced datasets?

Sample answer preview

Class imbalance occurs when the distribution of classes in a classification dataset is highly uneven. For example, in fraud detection, fraudulent transactions might represent only 0.1 percent of all transactions.

class imbalanceoversamplingundersamplingSMOTEclass weightsstratified sampling

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more AI/ML Engineer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime