What is an imbalanced dataset, and at what point does class skew start to matter for training?

Quick Overview

Asks what makes a dataset imbalanced and when class skew starts to affect model training and evaluation. Tests your judgment about minority class counts, separability, error costs, and metrics such as accuracy and PR-AUC on skewed data.

What is an imbalanced dataset, and at what point does class skew start to matter for training?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is an imbalanced dataset, and at what point does class skew start to matter for training? ```hint Two numbers to check Work out what a model that always predicts the majority class would score, and count how many minority examples the model actually gets to learn from. ``` ### What a Strong Answer Covers - A clear definition of class imbalance - Why no single ratio answers the question, and what decides it instead - Rough severity levels and what changes for training and evaluation at each - Observable signs that the skew is hurting the model - The role of the absolute minority count, class separability, and the cost of errors ### Follow-up Questions - Which metrics would you report for a 1:1000 problem, and why can ROC-AUC alone look better than the model really is? - When would you use class weights, resampling, or threshold tuning, and how does each affect the predicted probabilities? - How would you split data for validation when there are only a few hundred positives? - If you train on a downsampled majority class, how do you correct the model's probabilities for production?

Overview: Asks what makes a dataset imbalanced and when class skew starts to affect model training and evaluation. Tests your judgment about minority class counts, separability, error costs, and metrics such as accuracy and PR-AUC on skewed data.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is an imbalanced dataset, and at what point does class skew start to matter for training?

What a Strong Answer Covers Guidance

  • A clear definition of class imbalance
  • Why no single ratio answers the question, and what decides it instead
  • Rough severity levels and what changes for training and evaluation at each
  • Observable signs that the skew is hurting the model
  • The role of the absolute minority count, class separability, and the cost of errors

Follow-up Questions Guidance

  • Which metrics would you report for a 1:1000 problem, and why can ROC-AUC alone look better than the model really is?
  • When would you use class weights, resampling, or threshold tuning, and how does each affect the predicted probabilities?
  • How would you split data for validation when there are only a few hundred positives?
  • If you train on a downsampled majority class, how do you correct the model's probabilities for production?