for fitting data it must be "x_sm, y_sm = smote.fit_resample(x, y)" and not "x_sm, y_sm = smote.fit_sample(x, y)"