.
nan=X_train.mean()) X_test = np.nan_to_num(X_test, nan=X_test.mean()) X_a = np.array(X_train) x_b = np.array(X_test) After the execution of Random Over Sampler our data look like this fig(1) and as you can see the no of 0,1,2 classes is same hence this would help in improving the performance as our