I want to use Standard Scaler on my data. And I am also doing oversampling my minority data. Please specify the steps to do this.
- Scale the data
- Separate data to Xtrain, ytrain, Xtest and xtest
- Merge Xtrain and ytrain.
- Do oversampling
- make Xtrain and ytrain again with oversampled data
- Feed X-train and y-train into the model