X = all features from dataset
y = all target from dataset
X_train = features that already using train_test_split approach
y_train = target that already using train_test split approach
So my question is which one should I choose if I would like to do hyperparameter tuning? I have imbalanced data. In this case I would like to make pipeline that contains smote and the algorithm. I read someone who said that you should do oversampling on each fold of cross validation. Assuming when I am using randomized search CV --> that also have cross validate I am decided to run smote in pipeline. But I am unsure which data should I fit after I run the code.
fit(X,y) or fit(X_train, y_train)