BeginnerAbout 18 min
Softmax Function
Read the full article on Substack
7 min read.
See how softmax converts raw scores (logits) into probabilities step-by-step. Learn why it's THE activation for multi-class classification.
Classze^(z)Probability
Cat2.007.38952.0%
Dog1.002.71819.1%
Bird0.101.1057.8%
Fish0.501.64911.6%
Horse0.301.3509.5%
Sum14.211100%
1. Logits. The network outputs one raw score, a logit, per class. They can be any number and do not add up to anything.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Turn logits into probabilities
Sequence
Order a numerically stable softmax.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
5 pieces left to place
Quiz
20 questionsQuestion 1 of 20
Score: 0
The softmax function converts a vector of logits into…
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.