.
sm.fit_resample(X_train, y_train) import matplotlib.pyplot as plt fig = plt.figure(figsize = (8,5)) Train_data.RESULT_TEXT.value_counts(normalize = True).plot(kind='bar', color= ['skyblue','navy'], alpha = 0.9, rot=0) plt.title('Results Status Negative(0) and Positive(1) in the Imbalanced Dataset')