deepreg.loss   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 14
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
"""Define different loss classes for image, label and regularization."""
2
# flake8: noqa
3
from deepreg.loss.deform import BendingEnergy, GradientNorm
4
from deepreg.loss.image import (
5
    GlobalMutualInformation,
6
    GlobalMutualInformationLoss,
7
    LocalNormalizedCrossCorrelation,
8
    LocalNormalizedCrossCorrelationLoss,
9
)
10
from deepreg.loss.label import (
11
    CrossEntropy,
12
    DiceLoss,
13
    DiceScore,
14
    JaccardIndex,
15
    JaccardLoss,
16
    SumSquaredDifference,
17
)
18