Skip to main content

PyTensor powered distributions.

Project description

PyTensor-distributions

PyTensor-powered distributions

Overview

PyTensor-distributions provides a collection of core probability expressions implemented in PyTensor.

The goal of this package is to work as a unified, well tested and performant source for core probability expressions. This reduces redundancy across packages and allows other libraries to focus on providing specialized features and APIs on top of these core expressions.

The core expressions implemented in PyTensor-distributions are:

  • pdf: the probability density function of a distribution. (We use pdf for both discrete and continuous distributions)
  • cdf: the cumulative distribution function of a distribution.
  • ppf: the percent point function (inverse of cdf) of a distribution.
  • sf: the survival function (1 - cdf) of a distribution.
  • isf: the inverse survival function (inverse of sf) of a distribution.
  • logpdf: the log-probability of a distribution. (We use pdf for both discrete and continuous distributions)
  • logcdf: the log-cumulative distribution function of a distribution.
  • logsf: the log-survival function (1 - cdf) of a distribution
  • mean: the mean of a distribution.
  • mode: the mode of a distribution.
  • median: the median of a distribution.
  • var: the variance of a distribution.
  • std: the standard deviation of a distribution.
  • skewness: the skewness of a distribution.
  • kurtosis: the kurtosis of a distribution.
  • lmoments: The first lmoment is the mean, so we omit it. For the third and fourth L-moments, we use the ratios.
  • entropy: the entropy of a distribution.
  • rvs: the random variates of a distribution.

Some distributions may not have all of these expressions implemented.

The package follows a very minimal design, with one file per distribution and some utility files for common functions and tests. The core expressions are implemented as a collection of functions; no classes are used. This is on purpose, to keep the package as simple as possible and let other packages implement more structured APIs on top of these core expressions.

PyTensor-distributions is still in early development, and we are still adding more distributions and tests and working on improving robustness.

Contributions

PyTensor-distributions is a community project and welcomes contributions.

Code of Conduct

We follow the PyMC Code of Conduct

Donations

PyTensor-distributions, like other PyMC projects, is a non-profit project under the NumFOCUS umbrella. If you want to financially support PyTensor-distributions or other PyMC projects, you can donate here.

Sponsors

NumFOCUS

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytensor_distributions-0.2.0.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytensor_distributions-0.2.0-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file pytensor_distributions-0.2.0.tar.gz.

File metadata

  • Download URL: pytensor_distributions-0.2.0.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytensor_distributions-0.2.0.tar.gz
Algorithm Hash digest
SHA256 05f34156fb4b63ded816a01f39fe85ed93160b2a2ffcf5d78a32954fa74535fb
MD5 a1b4b21b796a1b242e36196aae8dd6ac
BLAKE2b-256 fcc26cd9193976df57a2841a7571c2b4f7386648425ced8be5ffab5432ad6dd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytensor_distributions-0.2.0.tar.gz:

Publisher: publish.yml on pymc-devs/pytensor-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytensor_distributions-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytensor_distributions-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b44d1d69fa97f42da7c592c226877d357d839e56703f6ab264fd88522ff23db
MD5 48de1c752764d1131fdd829be3671f73
BLAKE2b-256 3c5501ed2c56d84c30e02af924b3eef88e6c1ffd7b9383600a5f1c457cb13d87

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytensor_distributions-0.2.0-py3-none-any.whl:

Publisher: publish.yml on pymc-devs/pytensor-distributions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page