Autograd compatible approximations to the gamma family of functions
Project Links
Meta
Author: Cameron Davidson-Pilon
Classifiers
Intended Audience
- Science/Research
Topic
- Scientific/Engineering
Programming Language
- Python :: 2
- Python :: 3
autograd-gamma
autograd compatible approximations to the derivatives of the Gamma-family of functions.
Tutorial
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.
0.5.0
Oct 15, 2020
0.4.3
Sep 29, 2020
0.4.2
Feb 19, 2020
0.4.1
Jul 19, 2019
0.4.0
Jul 19, 2019
0.3.0
Jul 12, 2019
0.2.0
Jul 07, 2019
0.1
Jul 06, 2019
Files in release
No dependencies