Hmmm looks like I got it working with BigFloat — advice still appreciated though. 
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 …
-
-
- 12 more replies
New conversation -
-
-
work with logs, And use numpy.logaddexp if you need to add. Or is that too obvious ?
-
no it's not... Tell me more or link me? I'm currently running it just by casting to bigfloat where it was overflowing.
-
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.
- 2 more replies
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.
