DAILY PRACTICEBuild your AI engineering skills, one problem at a time.Try today's challenge
InferenceAIStart learning path

Mathematics & Statistics · Beginner

Probability for models

Probability expresses uncertainty about outcomes and provides a foundation for model training and evaluation.

TRY IT YOURSELF

Explore softmax temperature

Fixed example scores: [2, 1, 0]. This demonstrates the math, not a model prediction.

Option 1
66.5%
Option 2
24.5%
Option 3
9.0%

How it works

Softmax converts a set of scores into positive values that sum to one. Temperature scales the scores before softmax: lower temperatures sharpen the distribution, while higher ones flatten it.

A concrete example

With scores [2, 1, 0] at temperature 1, the first option has the largest probability, but the other options retain nonzero probability.

Watch for this

A softmax output is not automatically calibrated. A model that reports 80% confidence need not be correct 80% of the time without calibration checks.

Try it yourself

Adjust the temperature. Compare the probabilities as the distribution sharpens and flattens.

Continue to practice →

Read the source: Google: softmax ↗

Related concepts

Linear algebra intuition →

Statistical inference →

Gradient descent →