focalCrossEntropy
Syntax
Description
computes the focal cross-entropy between network predictions and target values for
single-label and multi-label classification tasks. The classes are mutually-exclusive
classes. The focal cross-entropy loss weights towards poorly classified training samples and
ignores well-classified samples. The focal cross-entropy loss is computed as the average
logarithmic loss divided by number of non-zero targets.dlY
= focalCrossEntropy(dlX
,targets
)
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes. For example, dlY
= focalCrossEntropy(___,Name=Value
)ClassificationMode="multilabel"
computes the cross-entropy loss for a multi-label classification task.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2020bSee Also
softmax
(Deep Learning Toolbox) | sigmoid
(Deep Learning Toolbox) | crossentropy
(Deep Learning Toolbox) | mse
(Deep Learning Toolbox)
Topics
- Lidar 3-D Object Detection Using PointPillars Deep Learning (Lidar Toolbox)