[Python] Imbalanced data: undersampling or oversampling?

Discussão em 'Python' iniciado por Stack, Julho 18, 2025.

  1. Stack

    Stack Membro Participativo

    I have binary classification problem where one class represented 99.1% of all observations (210 000). As a strategy to deal with the imbalanced data, I choose sampling techniques. But I don't know what to do: undersampling my majority class or oversampling the less represented class. If anybody have an advise?

    Thank you.

    P.s. I use random forest algorithm from sklearn.

    Continue reading...

Compartilhe esta Página