I am training a gradient boosting classifier on an imbalanced data but the model is not performing very well. These are the things I have done to improve the model's performance.
- Balanced the data with SMOTE
- Added more variables
- combined features
- polynomial feature transformation (this did not improve the model's performance)
- cleaned the data
- Scaled the data
Except number 4, the other efforts have improved the recall and precision of the model from 34% and 60% respectively to 58% and 51% respectively. Which is good but my aim is to improve the recall and precision to over 70%, is there any other method or technique I can try to get a recall and precision of of over 70?
predict_proba
on your model instead of justpredict
(to usesklearn
terminology). While I would advocate for considering the raw probability predictions given bypredict_proba
, if you must do classification, you're certainly allowed to adjust the threshold. $\endgroup$