How to handle imbalanced datasets?

Asked by Daniel Kim Nov 28, 2025 intermediate 890 views
51

I have a binary classification problem where class 0 has 95% of samples and class 1 has only 5%. My model always predicts class 0!

What techniques can I use to handle this imbalance?

  • SMOTE?
  • Class weights?
  • Undersampling?

Which approach works best?

Solutions

0 answers

No solutions yet

Be the first to help solve this problem!