Would super appreciate help on this. I need to raise numbers to huge power (50+) & Python understandably overflows. Documentation is bad.
https://twitter.com/o_guest/status/839918241363410945 …
it looked like it was working so fingers crossed as I have left it running.
-
-
take the logarithms of everything: google the log sum exp trick
-
Ahhhhhhh I see. Right I've left it running with big float, but will try what you said if it doesn't work. Or do you suspect
-
it's worth doing regardless?
-
depends on what you are doing .. are they probabilities ? There are other tricks to avoid underflow. Log is easy but inefficient
-
it needs to be incredibly efficient as big data. It's actually a Luce choice weight.
-
if you are mostly multiplying them - or raising to powers - then logs are worth it.
-
yeah multiplying and raising
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
