Main Content

Decode probability vectors into class labels

decodes probability vectors 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 probability
vectors are decoded 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.