Which model families cope better with class imbalance out of the box, and why?
Last updated
Gradient boosting (
XGBoost,LightGBM) copes best: it focuses on misclassified minority points, isolates small regions, and offersscale_pos_weight.Logistic regression ranks well because the intercept absorbs the prior, so it mainly needs threshold tuning. Random forests and SVMs are moderately robust but still majority-biased without balancing or
class_weight.Neural nets, large-k kNN, and Naive Bayes are weaker out of the box. No model is immune, and the default threshold usually still needs adjusting.