From this post, I know that you can set scale_pos_weightscale_pos_weight
for an imbalanced dataset. However However, How to deal withfor the multi-classification problem in the imbalanced dataset.
, I have gone through Unbalanced multiclass data with XGBoost
but don't quite understand how to set the weight parameter in Dmatrixdmatrix
.
Can anyone please explainHow can I use XGBoost for an imbalanced dataset in detaila multi-classification problem?