2 ms·
Don't try this at home, there are nasty edge cases around Infs/NaNs. Use your math library instead; in Python, that'd be numpy.logaddexp or scipy.misc.logsumex
by Radim 15y ago
Don't try this at home, there are nasty edge cases around Infs/NaNs.
Use your math library instead; in Python, that'd be numpy.logaddexp or scipy.misc.logsumexp.