I have a dataset with a multilabel classification problem. I have an array that contains a column for each label, and each entry has a 0 or a 1 for each label(Multi Hot Array). I also have a list of the labels associated to each columns. When I pass those labels and the list of labels to a databunch constructor, it doesn’t create the databunch I want. It calls src.label_from_list
where src is an ItemLists on my thing which expects labels to be given in the form of a list of labels and to create the array itself. At the moment I convert my multi_hot_array back to a list of labels.
Is there a better way to proceed?
PS : The reason I would like another way to proceed is that i’m also performing some transformation on the labels and those transformation are at the moment happening on a multi-hot-array. So i’m currently doing list_of_labels -> multi_hot_array —transform—> multi_hot_array -> list_of_labels -> Databunch. It seems ‘natural’ to me to be able to pass a multi_hot_array to a Databunch. What do you think of that?