I want to try using the random forest classifier in python without using train_test_split. I have a training dataset in one file and I want to train the python machine learning model using the training dataset and then I want to apply the model on the test dataset. All the datasets are in different excel files
I have tried to using SMOTE oversampling but I need to define 'X_train'
from imblearn.over_sampling import (SMOTE, SMOTENC, BorderlineSMOTE,SVMSMOTE,KMeansSMOTE)
sm = SMOTE(sampling_strategy='not majority',random_state=None,k_neighbors=10) x_train_res, y_train_res = sm.fit_resample(X_train, y_train)