zero323 commented on pull request #30745: URL: https://github.com/apache/spark/pull/30745#issuecomment-747634555
> This function is both much more concise than an expression of the form exp(sum(log(...))), and avoids awkward edge-cases associated with some values being zero or negative, as well as being less computationally costly. If this is the goal, wouldn't make more sense to implement an equivalent of [`scipy.special.logsumexp`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.logsumexp.html#scipy-special-logsumexp)? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
