Hello
I am running distilbert-base-multilingual-cased’ on Pytorch. My model has 4 classes in the target.
In the code in models/distilbert/modeling_distilbert.py. I am reaching this state
elif self.config.problem_type == “multi_label_classification”:
**                loss_fct = BCEWithLogitsLoss()**
**                loss = loss_fct(logits, labels)**
I have two questions:
1 BCEWithLogitsloss  must receive the labels as one hot rather integers . must I take care of doing one_hot?
2 If I wish to add regulation functions to the loss , what is the best practice for doing so?
Thanks