onehotdecode
Decode probability vectors into class labels
Description
decodes each probability vector inA
= onehotdecode(B
,classes
,featureDim
)B
to the most probable class label from the labels specified byclasses
.featureDim
指定的尺寸以及probability vectors are defined. The function decodes the probability vectors into class labels by matching the position of the highest value in the vector with the class label in the corresponding position inclasses
. Each probability vector inA
is replaced with the value ofclasses
that corresponds to the highest value in the probability vector.
Examples
Input Arguments
Output Arguments
See Also
Introduced in R2020b