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
Hi,
I have a multi-output multi-class (multi-target) dataset and would like to do data stratification before applying a learning algorithm. Using iterative_train_test_split from skmultilearn library (```
from skmultilearn.model_selection import iterative_train_test_split
x_train, y_train, x_test, y_test = iterative_train_test_split(x, y, test_size = 0.1)
Thank you.
The text was updated successfully, but these errors were encountered:
Hi, unfortunately this package is not currently designed to handle multiclass-multioutput classification. I wonder though if you could maybe one-hot encode your targets, feed them into the stratifier, keep track of the indices of the instances, and then, once they are split into folds, convert them back into the original target values since you've retained the indices. Just a thought. I'm sorry I couldn't be of more help.
Hi,
I have a multi-output multi-class (multi-target) dataset and would like to do data stratification before applying a learning algorithm. Using
iterative_train_test_split
from skmultilearn library (```from skmultilearn.model_selection import iterative_train_test_split
x_train, y_train, x_test, y_test = iterative_train_test_split(x, y, test_size = 0.1)
The text was updated successfully, but these errors were encountered: