I am training a network to identify topics in text. Text can contain several topics. In some of the texts, I have missing labels for some of the topics (I do not have information if the text contains or not contains the topic ).
I use MultiLabelSoftMarginLoss() as loss function.
I try to indicate the missing values with a special label and get bad results.
Do you have a recommendation for another loss function or a reference to a custom function that someone wrote? before I am trying to invent the wheel myself and write a custom function?