Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex.
Edited: @lscheinkman looked this up and apparently this is a common way to fix it. This change looks good but can you add a unit test for this function?
Please look this softmax formula.
If x_i is too big, it occur overflow. It is necessary to subtract constant m. Sometimes people set m to be the maximum of x.