smote_variants icon indicating copy to clipboard operation
smote_variants copied to clipboard

provided out is the wrong size for the reduction

Open bharath8847 opened this issue 2 years ago • 0 comments

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

bharath8847 avatar Jul 26 '21 12:07 bharath8847