Means, to add two sets of weight vectors to the regular BCE. The first relates to the positive prediction case and the second to the negative case.
The pytorch BCE loss is based on this function: torch.binary_cross_entropy_with_logits that can get only pos_weight.
Is there any modification that can be done in order to implemet this function, besided the idea of re-writing it independently.