Skip to main content

Bayesian Inference with JAX

Reason this release was yanked:

attribute handling was not fully refactored

Project description

Bayinx: Bayesian Inference with JAX

Bayinx is an embedded probabilistic programming language in Python, powered by JAX. It is heavily inspired by and aims to have feature parity with Stan, but extends the types of objects you can work with and focuses on normalizing flows variational inference for sampling.

Bayinx is highly interoperable with other libraries in the JAX ecosystem, and

Installation

Bayinx requires Python 3.12+, JAX, and a few extra libraries in the JAX ecosystem. The easiest way to get started is by installing from PyPi using your favourite python package manager. For example with uv:

# Ensure you are in your project environment
uv add bayinx

This installs the bare-bones version of Bayinx, however if you need additional functionality like GPU support, there are a couple of dependency groups:

# Ensure you are in your project environment
uv add 'bayinx[cuda]' # Installs Bayinx with CUDA support

Documentation

Documentation is available at: https://toddpocuca.github.io/bayinx.

Roadmap

  • Allow shape definitions to include expressions (e.g., shape = 'n_obs + 1' will evaluate to the correct specification)
  • Find a nice way to track the ELBO trajectory to implement early stopping (tolerance currently does nothing).
  • Nodes carry bounds for their support (i.e., node.obj ∈ [node._lb, node._ub]) which are used to check if inputs to distributions are valid (e.g., a node inputted as the scale of a normal dist must have node._lb >= 0)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

bayinx-0.6.4.tar.gz (695.3 kB view details)

Uploaded Source

Built Distribution

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

bayinx-0.6.4-py3-none-any.whl (65.5 kB view details)

Uploaded Python 3

File details

Details for the file bayinx-0.6.4.tar.gz.

File metadata

  • Download URL: bayinx-0.6.4.tar.gz
  • Upload date:
  • Size: 695.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bayinx-0.6.4.tar.gz
Algorithm Hash digest
SHA256 6919d57dedbbf373a68ff6fb1eb650be32df62e84b91343238c9474347a8ed26
MD5 d18a8503e520541cf677e1c055dce70b
BLAKE2b-256 46ef11c275452ec657bc90a704121c1ffce223e046c915cb1bc72f62de6060a8

See more details on using hashes here.

File details

Details for the file bayinx-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: bayinx-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 65.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bayinx-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7957236d8c2ec86e177423d50d88e777e14088dab8edc9939fa83273e937b6df
MD5 cdd25061a57acf38d136012490d171e7
BLAKE2b-256 194a32caaa6fbf41d4da71c108c6c7a6689ddfd9bf40ef2358eb9395ef70b1a5

See more details on using hashes here.

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