Conceptual

Softmax Function

Exponentiates a vector of scores and normalizes them to sum to 1, turning arbitrary logits into a probability distribution while preserving order. Subtracting the max score first keeps the exponentials numerically stable.