I am working with imblearn library of Python for undersampling.
Necessary code:
undersample = RandomUnderSampler(sampling_strategy='majority')
X_under, y_under = undersample.fit_resample(X, y)
Here X is my image dataset & of (120, 100, 100) shape and y is images' labels which is of (120,) shape. I am getting an error here. But if I give X of shape (x_value, y_value) then it works. Is there any way I can convert (120, 100, 100) shape of image data to (120, 10000) shape?