3 ms·
This comes up a lot in calculating odds, or ratio of probabilities. How one implements these in code is a good indicator of how much experience a person has wit
by srean 7y ago
This comes up a lot in calculating odds, or ratio of probabilities. How one implements these in code is a good indicator of how much experience a person has with real world scenarios. One of those shibboleths. Another telltale giveaway is accumulating the dot product of float32s in float32s.
- eutectic 7y agoSerious probability calculations are usually best made in log-space, turning multiplication into addition.
- srean 7y agoIndeed -- https://en.wikipedia.org/wiki/Log_semiring https://en.wikipedia.org/wiki/Log_semiring
- taneq 7y agoSee this is why we keep you maths people around. Sometimes all that abstract wizardry is really useful! :)
- srean 7y agoI just hope that wasn't bitter sarcasm. I think this would have been a more relevant link https://en.wikipedia.org/wiki/LogSumExp#log-sum-exp_trick_for_log-domain_calculations https://en.wikipedia.org/wiki/LogSumExp#log-sum-exp_trick_fo...