https://github.com/camdavidsonpilon/autograd-gamma
NotImplementedError: VJP of gammainc wrt argnum 0 not defined
https://github.com/camdavidsonpilon/autograd-gamma
autodiff autograd beta derivative gamma
Last synced: 11 months ago
JSON representation
NotImplementedError: VJP of gammainc wrt argnum 0 not defined
- Host: GitHub
- URL: https://github.com/camdavidsonpilon/autograd-gamma
- Owner: CamDavidsonPilon
- License: mit
- Created: 2019-07-06T21:06:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T16:48:39.000Z (over 5 years ago)
- Last Synced: 2025-07-03T22:05:34.148Z (11 months ago)
- Topics: autodiff, autograd, beta, derivative, gamma
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 15
- Watchers: 1
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# autograd-gamma
[](https://badge.fury.io/py/autograd-gamma)
[autograd](https://github.com/HIPS/autograd) compatible approximations to the derivatives of the Gamma-family of functions.
# Tutorial
```python
from autograd import grad
from autograd_gamma import gammainc, gammaincc, gammaincln, gammainccln
grad(gammainc, argnum=0)(1., 2.)
grad(gammaincc, argnum=0)(1., 2.)
# logarithmic functions too.
grad(gammaincln, argnum=0)(1., 2.)
grad(gammainccln, argnum=0)(1., 2.)
from autograd_gamma import betainc, betaincln
grad(betainc, argnum=0)(1., 2., 0.5)
grad(betainc, argnum=1)(1., 2., 0.5)
# logarithmic functions too.
grad(betaincln, argnum=0)(1., 2., 0.5)
grad(betaincln, argnum=1)(1., 2., 0.5)
```
# Long-term goal
Build and improve upon the derivative of the upper and lower incomplete gamma functions. Eventually, if we have a fast analytical solution, we will merge into the autograd library.