Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError: Forward-mode differentiation rule for 'digamma' not implemented #3372

Closed
jkgiesler opened this issue Jun 8, 2020 · 1 comment · Fixed by #3385
Closed
Labels
enhancement New feature or request

Comments

@jkgiesler
Copy link

I'm running into the following error using jax 0.1.57 and numpyro 0.2.4 while trying to model a GammaPoisson distribution with SVI:

NotImplementedError: Forward-mode differentiation rule for 'digamma' not implemented.

This issue can be replicated by running the following:

import jax
jax.hessian(jax.scipy.special.gammaln)(jax.numpy.ones(3))
jax.grad(jax.scipy.special.digamma)(jax.numpy.ones(3))

It sounds like the ideal case would be an implementation of scipy.special.polygamma. This way numpyro could handle taking the derivative of any polygamma. For more information, please look here: pyro-ppl/numpyro#621 (comment).

The GammaPoisson distribution is critical for modeling in my industry, so it would be awesome to get it working.

Thank you!

@gnecula gnecula added the enhancement New feature or request label Jun 9, 2020
@gnecula
Copy link
Collaborator

gnecula commented Jun 9, 2020

This is a good topic for community contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants