Decode probability vectors into class labels
decodes each probability vector inA
= onehotdecode(B
,classes
,featureDim
)B
to the most probable class label from the labels specified byclasses
.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 inclasses
. Each probability vector inA
is replaced with the value ofclasses
that corresponds to the highest value in the probability vector.