Anyone knows how to use smote function and XGboost in R at the same time? I used smote function to balance the classes first, then use XGboost for training. However, one of