Calculate the classification from an inference by taking the softmax of the inference and comparing the max output value to the second largest.
Calculate the classification from an inference by taking the softmax of the inference and comparing the max output value to the second largest. If the max value is greater than the second by greater than the defined margin, then a one-hot code is emitted. Otherwise an the output for that example is all zeros, indicating a failure to classify above the defined margin.
field to perform classification with
number of examples in the batched field
margin to use
A one-hot classification code for each example if the margin is met