I am trying to use the imblearn random undersampler but I have the problem that my X_train is a 3D array and the undersampler needs a 2D array so I am getting the error:
Found array with dim 3. Estimator expected <= 2.
So I tried the solution described here: resampling data - using SMOTE from imblearn with 3D numpy arrays but that gives me the error "cannot reshape array of size 40000 into shape (160,10)".
Can someone help me how to change the arrays?
My arrays have the shape: y_train: (27704, 2) X_train: (27704, 30, 5)
Or does maybe someone know a better way how I could downsample my datasets?