You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to perform OverSampler on the image classification task, but the result shows "ValueError: Found array with dim 4. RandomOverSampler expected <= 2." How can I use imbalanced-learn?
The text was updated successfully, but these errors were encountered:
Most scikit-learn compatible stuff only accepts a 2D matrix for X with a shape of (n_samples, n_features). Nonetheless, you can work it around with reshape function from numpy,
Note that we can go back and forth with the shapes of an array using it:
I want to perform OverSampler on the image classification task, but the result shows "ValueError: Found array with dim 4. RandomOverSampler expected <= 2." How can I use imbalanced-learn?
The text was updated successfully, but these errors were encountered: