Improve the partial derivatives of tfp_math.betainc by leandrolcampos · Pull Request #1580 · tensorflow/probability (original) (raw)

This PR tries to improve the partial derivatives of tfp_math.betainc(a, b, x) with respect to a and b.

Some of the improvement opportunities I identified in the current implementation of these partial derivatives are:

Please see the following notebook:
https://gist.github.com/leandrolcampos/c5a77b0f24ee8d2a38c9ea2f8ddc3c77

The alternative implementation I propose addresses all these improvement opportunities. Please see the following notebook:
https://gist.github.com/leandrolcampos/776048810f9c4ae18fc9598f54543057