A dataset contains two classes with significant imbalance. Which strategy most directly helps the model not ignore the minority class?

Answer

Use class-weighted loss or oversample the minority class

Explanation

Class-weighting and oversampling increase the effective contribution of minority examples to the loss. This helps the model learn decision boundaries that consider both classes.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list