I ran the following Python code to take care of my imbalanced data problem. I used the SMOTE function. I am not sure how I would see and export(as an excel file to my desktop)"resample data set" (1: 860 to 0:860). Because I want to take that excel file and process it using another application.Any help is much appreciated
from imblearn.over_sampling import SMOTE
smote = SMOTE()
x_smote , y_smote = smote.fit_sample(x, y)
print('Original dataset:', Counter(y))
print('Resample dataset:', Counter(y_smote)
Output
Original dataset shape Counter({1: 860, 0: 483})
Resample dataset shape Counter({1: 860, 0: 860})