How do Data Scientists handle imbalanced datasets in classification problems?
I am working on a fraud detection project where the "fraud" class is less than 1% of the total data. My model is achieving 99% accuracy just by predicting "not fraud" every time. What are the best techniques to handle this? Should I focus on oversampling the minority class, undersampling the majority, or using specific loss functions like focal loss to penalize errors?
Write a Comment
Your email address will not be published. Required fields are marked (*)