Please help me to understand which of the following is correct and why.
X_train
,X_test
: Split the training set into training and test setsX_train_std
: StandardizeX_train
X_train_res
: OversampleX_train_std
model.fit
: Train the model usingX_train_res
X_test_std
: StandardizeX_test
using the parameters calculated in 2)model.evaluate
: Evaluate the model usingX_test_std
Or:
X_train
,X_test
: Split the training set into training and test setsX_train_std
: StandardizeX_train
X_train_res
: OversampleX_train_std
X_train_res_std
: StandardizeX_train_res
model.fit
: Train the model usingX_train_res_std
X_test_std
: StandardizeX_test
using the parameters calculated in 4)model.evaluate
: Evaluate the model usingX_test_std