MCPcopy Create free account
hub / github.com/MontaEllis/Pytorch-Medical-Segmentation / BinaryDiceLoss

Class BinaryDiceLoss

loss_function.py:62–99  ·  view source on GitHub ↗

Dice loss of binary class Args: smooth: A float number to smooth loss, and avoid NaN error, default: 1 p: Denominator value: \sum{x^p} + \sum{y^p}, default: 2 predict: A tensor of shape [N, *] target: A tensor of shape same with predict reduction: Reductio

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected