Expand description
Loss functions
Structs§
- Binary cross entropy loss.
- Builder for
BinaryCrossEntropy
. - Computes the cosine similarity loss.
- Builder for
CosineSimilarityLoss
. - Cross entropy loss function.
- Builder for
CrossEntropy
. - Compute the negative log likelihood loss for a Gaussian distribution.
- Builder for
GaussianNllLoss
. - Compute the hinge loss.
- Builder for
HingeLoss
. - Compute the Huber loss.
- Builder for
HuberLoss
. - Compute the Kullback-Leibler divergence loss.
- Builder for
KlDivLoss
. - Computes the L1 loss
- Builder for
L1Loss
. - Computes the log cosh loss between inputs and targets.
- Builder for
LogCoshLoss
. - Computes the margin ranking loss.
- Builder for
MarginRankingLoss
. - Computes the mean squared error loss.
- Builder for
MseLoss
. - Computes the negative log likelihood loss.
- Builder for
NllLoss
. - Computes the smooth L1 loss.
- Builder for
SmoothL1Loss
. - Computes the triplet loss for a set of anchor, positive, and negative samples. Margin is represented with alpha in the math section.
- Builder for
TripletLoss
.
Enums§
- Different types of loss reductions
Type Aliases§
- Helper type alias for CrossEntropyBuilder weights.