Skip to content

Commit

Permalink
Parameter description added
Browse files Browse the repository at this point in the history
Co-authored-by: Armand <[email protected]>
  • Loading branch information
gbazad93 and hermancollin authored Aug 18, 2021
1 parent b3909cb commit a63f719
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ivadomed/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class DiceLoss(nn.Module):
Attributes:
smooth (float): Value to avoid division by zero when images and predictions are empty.
sample_wise (bool): If set, dice loss is averaged over sample instead of over batch
"""
def __init__(self, smooth=1.0, sample_wise=False):
super(DiceLoss, self).__init__()
Expand Down

0 comments on commit a63f719

Please sign in to comment.