Oversample using SMOTE on certain features

Viewed 16

My dataset have 5 features. 3 out of 5 are categorical and very imbalanced. First question, should I split data into train and test set before applying SMOTE? Second question, if yes to Q1, how do I apply SMOTE to only 3 features while leaving the other 2 numerical alone? Thank you.

0 Answers
Related