Main Content
onehotdecode
Description
decodes each probability vector in A
= onehotdecode(B
,classes
,featureDim
)B
to the most probable class label from the labels specified by classes
. featureDim
specifies the dimension along which the 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 in classes
. Each probability vector in A
is replaced with the value of classes
that corresponds to the highest value in the probability vector.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b