autograd-gamma
Autograd compatible approximations to the gamma family of functions
What it is and what it does
autograd-gamma extends the autograd automatic differentiation library with derivatives for incomplete gamma and beta functions—special mathematical functions commonly used in statistics and scientific computing. It wraps approximations to these derivatives so you can compute gradients through them in optimization and machine learning workflows.
The package provides four gamma-family functions (gammainc, gammaincc, gammaincln, gammainccln) and two beta-family functions (betainc, betaincln), each differentiable with respect to specified arguments. It has no runtime dependencies and is designed as a lightweight bridge. However, the project has been inactive since 2020-10-15 and is no longer maintained.
Use it for:
- Computing gradients through incomplete gamma functions in Bayesian inference or statistical models
- Optimizing parameters in distributions that depend on gamma or beta functions using gradient descent
- Building automatic differentiation pipelines for scientific computing that require special function derivatives
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides autograd-compatible derivatives for incomplete gamma and beta functions, enabling automatic differentiation through special mathematical functions.
No, unless you have a specific legacy dependency. The package is abandoned with last commit 2020-10-15 and no maintenance signal. High install friction and uncertain compatibility with current autograd and Python versions make it a poor choice for new projects.
Install
autograd-gamma on PyPI
pip
pip install autograd-gammauv
uv add autograd-gammapoetry
poetry add autograd-gammaInstalling autograd-gamma
Before you install
High install friction and abandoned status since 2020-10-15 with no updates since. No runtime dependencies, but lack of maintenance may cause compatibility issues with modern Python versions.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions.
Quickstart
from autograd import grad
from autograd_gamma import gammainc, gammaincc
grad(gammainc, argnum=0)(1., 2.)
grad(gammaincc, argnum=0)(1., 2.)
Requires autograd to be installed separately; package is unmaintained since 2020-10-15
Verify before relying
- Compatibility with current versions of autograd and modern Python releases
- Whether the analytical solutions mentioned in the long-term goal were completed or merged upstream
- Performance characteristics of the approximations relative to alternatives
Package facts
| License | MIT License (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,129 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,923,840/month — #3,427 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: autograd-gamma-0.5.0.tar.gz
Keywords: autograd, gamma, incomplete gamma function
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
autogradAutograd automatically computes derivatives of…
permissive · top 5,000 on PyPI
numdifftoolsComputes numerical derivatives, gradients,…
permissive · top 15,000 on PyPI
findiffComputes finite difference numerical…
permissive · top 15,000 on PyPI
TheanoTheano is a Python library for defining,…
permissive · top 15,000 on PyPI
cody-specialProvides high-precision implementations of…
permissive · top 15,000 on PyPI
torchPyTorch provides GPU-accelerated tensor…
permissive · top 1,000 on PyPI
uncertaintiesPerforms arithmetic and mathematical operations…
permissive · top 5,000 on PyPI
piecewise-rationalPerforms shape-preserving piecewise rational…
permissive · top 15,000 on PyPI
jaxellipProvides JAX-compatible implementations of…
permissive · top 15,000 on PyPI
sparsediffpySparseDiffPy provides Python bindings to…
permissive · top 5,000 on PyPI