We want a model of for use in decision theory.
- Predictions generally map to labels for classes (for binary prediction, we used )
- Probabilities we want to map to the range
The most common choice is to use the sigmoid function:
Multi-class Probabilities
See also: multi-class classification
The softmax function allows us to map real numbers to probabilities.
The alternative ‘harder’ version to softmax is the argmax function which simply finds the maximum value, sets it to 1.0, and assigns 0.0 to all other values.
In contrast, the softmax operation serves as a “softer” version of that. Due to the exponentiation involved in softmax, the largest value is emphasized and pushed towards 1.0, while still maintaining a probability distribution over all input values. This allows for a more nuanced representation that captures not only the most likely option but also the relative likelihood of other options.