Softmax converts a neural network’s final outputs into probabilities for multiple classes. These nonnegative values sum to one, making the largest value the predicted class. section 8.2.4 section 8.6.1
Use softmax when:
- A neural network performs multiclass classification. section 8.2.4
- The final layer must express competing class predictions as probabilities. section 8.2.4 section 8.6.1
- A convolutional neural network passes extracted image features through a fully connected layer to its classification output. section 8.6.1
Image classification
For an image classified as a car, bike, or truck, softmax produces one probability for each category; the highest probability determines the prediction. The same pattern applies to cat-versus-dog classification. section 8.2.4 section 8.6.1
















