Skip to main content

No project description provided

Project description

bayes-kit

bayes-kit is an open-source Python package for black-box Bayesian inference with minimial dependencies for maximal flexiblity.

Bayesian models involve specifying a posterior log density for parameters conditioned on data. Bayesian models are typically specified in terms of a prior distribution over parameters and a sampling distribution which generates observed data conditioned on the parameters. Users are free to define models using arbitrary Python code, such as

Bayesian inference involves conditioning on data and averaging over uncertainty. Specifically, bayes-kit can compute * parameter estimates, * posterior predictions for new observations, and * event probability forecasts, all with Bayesian uncertainty quantification.

Black-box algorithms are agnostic to model structure. Algorithms in bayes-kit may require only log densities, whereas the high-performance algorithms further require gradients of the log density function.

Markov chain Monte Carlo samplers

Markov chain Monte Carlo (MCMC) samplers provide a sequence of random draws from target log density, which may be used for Monte Carlo estimates of posterior expectations and quantiles for uncertainty quantification.

Hamiltonian Monte Carlo sampler

Hamiltonian Monte Carlo simulates Hamiltonian dynamics with a potential energy function equal to the negative log density. It requires a target log density, gradient function, and optionally a metric.

Random-walk Metropolis sampler

Random-walk Metropolis is a diffusive sampler that requires a target log density function and a symmetric pseudorandom proposal generator.

Dependencies

bayes-kit has minimal dependencies, requiring only

Licensing

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

bayes_kit-0.0.1a0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

bayes_kit-0.0.1a0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file bayes_kit-0.0.1a0.tar.gz.

File metadata

  • Download URL: bayes_kit-0.0.1a0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for bayes_kit-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 414e94e052eeeafad5d4775df40a3d953e800340df49517050d85edca17ec8b6
MD5 51e3795f85de1531e225755edfc6a07b
BLAKE2b-256 0d951e9302e28a9a4dff36c44fa958685988c9f3068d1f5cc0932039bc415e3f

See more details on using hashes here.

File details

Details for the file bayes_kit-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: bayes_kit-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for bayes_kit-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 098ddc517cb52dd64cc423f2834e0e01a91d7be7f64822ee8add97ea09ccac5e
MD5 6a3d3d4f78da46126ebf3d90940215c5
BLAKE2b-256 b3be36aaa2931dc6b076bc0a78850c28a6154cec0ed9e46fa180f5069c551e05

See more details on using hashes here.

Supported by

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