0Pricing
Deep Learning Academy · Lesson

Softmax for Probabilities

Turn raw scores into a class distribution.

From Scores to Choices

A classifier's last layer spits out raw scores, one per class. These unbounded numbers are called logits, and they are hard to read directly. 🔢

Enter Softmax

Softmax turns a vector of logits into a clean probability distribution over all your classes. Now each score becomes a chance.

import torch.nn.functional as F
probs = F.softmax(logits, dim=-1)

All lessons in this course

  1. Why Nonlinearity Unlocks Real Power
  2. ReLU and Its Leaky & GELU Cousins
  3. Sigmoid & Tanh: Squashing to a Range
  4. Softmax for Probabilities
← Back to Deep Learning Academy