BCEWithLogitsLoss — PyTorch 1.10.1 documentation
pytorch.org › docs › stablewhere c c c is the class number (c > 1 c > 1 c > 1 for multi-label binary classification, c = 1 c = 1 c = 1 for single-label binary classification), n n n is the number of the sample in the batch and p c p_c p c is the weight of the positive answer for the class c c c. p c > 1 p_c > 1 p c > 1 increases the recall, p c < 1 p_c < 1 p c < 1 ...
torch.nn.functional.binary_cross_entropy_with_logits ...
pytorch.org › docs › stabletorch.nn.functional. binary_cross_entropy_with_logits (input, target, weight = None, size_average = None, reduce = None, reduction = 'mean', pos_weight = None) [source] ¶ Function that measures Binary Cross Entropy between target and input logits. See BCEWithLogitsLoss for details. Parameters. input – Tensor of arbitrary shape as unnormalized scores (often referred to as logits).