analyticalmindsltd / smote_variants

A collection of 85 minority oversampling techniques (SMOTE) for imbalanced learning with multi-class oversampling and model selection features
http://smote-variants.readthedocs.io
MIT License
631 stars 137 forks source link

provided out is the wrong size for the reduction #40

Open bharath8847 opened 3 years ago

bharath8847 commented 3 years ago

Hello,

When i am trying to use smote on text data then it gives me an error provided out is the wrong size for the reduction. Could you please help me out ?

2021-07-26 12:17:30,170:INFO:MulticlassOversampling: Running multiclass oversampling with strategy eq_1_vs_many_successive

ValueError Traceback (most recent call last)

in () 12 13 # X_samp and y_samp contain the oversampled dataset ---> 14 X_samp, y_samp= oversampler.sample(X,y_train) 6 frames <__array_function__ internals> in cumsum(*args, **kwargs) /usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py in _wrapfunc(obj, method, *args, **kwds) 56 57 try: ---> 58 return bound(*args, **kwds) 59 except TypeError: 60 # A TypeError occurs if the object does have such a method in its ValueError: provided out is the wrong size for the reduction