A model’s performance varies significantly across classes. Which strategy best aligns with addressing class imbalance in training?
Answer
Use balanced sampling or class-weighted loss
Explanation
Balanced sampling and class-weighted losses encourage the model to learn minority classes rather than favor majority classes. This usually improves metrics sensitive to imbalance.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A regression model shows high training performance but poor validation performance. Which technique most directly helps with generalization?
View question →
A company fine-tunes a pre-trained model on a new dataset. Which approach most directly addresses catastrophic forgetting during training?
View question →
You want to deploy an ML model for low-latency inference with managed hosting. Which SageMaker deployment option best matches this goal?
View question →
You trained an image classification model with a softmax output. For a multi-class prediction, what is the most appropriate interpretation?
View question →
Which AWS service is commonly used to orchestrate and run multi-step ML workflows (e.g., data prep, training, evaluation, and deployment) using pipelines?
View question →
In feature engineering, you must transform a continuous numeric feature before training a linear model. Which transformation often improves convergence and stability when values are highly skewed?
View question →