andreshernandez-spec

Results comments of andreshernandez-spec

The cause is structural: betainc lowers to a while_loop running Lentz's continued fraction, so the whole array re-executes until the worst element converges, and the loop is a fusion barrier....

Until #38977 (or something like it) lands, this works today: chebax (https://github.com/andreshernandez-spec/chebax) has ```python chebax.betainc_fn(a, b, x) # jax.grad works w.r.t. a and b jax.grad(chebax.betainc_fn, (0, 1))(a, b, x) ```...

A workaround that removes the tfp dependency entirely: chebax (https://github.com/andreshernandez-spec/chebax) now ships an opt-in pytensor dispatch module, ```python import chebax.pytensor # before pm.sample ``` which registers JAX lowerings for the...

@ricardoV94 @aaronanish-t I had actually been looking at censored NegativeBinomial because after gammainc, the next function I was going to make PRs on is betainc. It makes fitting `pm.Censored(pm.NegativeBinomial.dist)` about...