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
Oversampling modules sometimes return a truncated array in the multi-class instance. Apologies if this is a user error. Below example feeds in a multi-label matrix; unsure if this has implications for the algorithm (if so feel free to correct my understanding! :)).
Some array which features the same number of columns as the input.
(1000, 10)
Actual Results
Randomly truncates one of the columns during calls to fit_resample and fit_sample. Have toggled the cell in my notebook in sequence to discern a pattern; there is none. Result randomly appears in 1/4 results (ish). Even after controlling for the random state in the instance creation.
Sorry for opening again... Somewhat related...
Isn't multi label support implemented from here? #340
Sometimes all the terms can be confusing. multi class, multi label, multi output... Top of that one hot encoding, multi label binarizing, and so on....
Only when it corresponds to a one-hot encoding of a multiclass problem (a single 1 per row where the row corresponds to the class). Otherwise, there is no literature to do it in a multi-label setting.
Description
Oversampling modules sometimes return a truncated array in the multi-class instance. Apologies if this is a user error. Below example feeds in a multi-label matrix; unsure if this has implications for the algorithm (if so feel free to correct my understanding! :)).
Steps/Code to Reproduce
Expected Results
Some array which features the same number of columns as the input.
(1000, 10)
Actual Results
Randomly truncates one of the columns during calls to
fit_resample
andfit_sample
. Have toggled the cell in my notebook in sequence to discern a pattern; there is none. Result randomly appears in 1/4 results (ish). Even after controlling for the random state in the instance creation.(1000, 9)
Versions
Linux-4.4.0-134-generic-x86_64-with-debian-stretch-sid
Python 3.6.6 |Anaconda, Inc.| (default, Oct 9 2018, 12:34:16)
[GCC 7.3.0]
NumPy 1.15.2
SciPy 1.1.0
Scikit-Learn 0.20.0
Imbalanced-Learn 0.4.1
The text was updated successfully, but these errors were encountered: