Machine Learning & AI
Basic
Softmax
Turns a vector of scores into a probability distribution that sums to 1.
Formula
Variables
z_iScore for class i
jAll classes
Example
z=[1,2,3]: softmax=[0.09,0.24,0.67]
Did You Know?
Softmax is the standard output layer for multi-class classifiers, from digit recognition to LLMs.
Share this formula
More in Machine Learning & AI
View allLinear Regression Model
BasicPredicts a continuous value as a weighted sum of input features plus a bias.
Gradient Descent Update
BasicIteratively moves parameters in the direction that most reduces the loss.
ReLU Activation
BasicRectified Linear Unit: outputs the input if positive, else zero.
Leaky ReLU
BasicA ReLU variant that lets a small gradient flow for negative inputs.
Tanh Activation
BasicSquashes input to the range (-1, 1); zero-centred activation.
Binary Cross-Entropy
BasicLoss for binary classification comparing predicted probability to the true label.