DeepNotes | Deep Learning Demystified
https://deepnotes.io/softmax-crossentropyWe have to note that the numerical range of floating point numbers in numpy is limited. For float64 the upper bound is \(10^{308}\). For exponential, its not difficult to overshoot that limit, in which case python returns nan.. To make our softmax function numerically stable, we simply normalize the values in the vector, by multiplying the numerator and denominator with a …