Definition Suppose the number of possible outcomes is K, then the softmax function softmax(z):RK→(0,1)K is defined as softmax(z)i=∑j=1Kexp(zj)exp(zi)