Jaxampler 🧪 - A JAX-based statistical sampling toolkit
Jaxampler 🧪 is a statistical sampling toolkit built on top of JAX. It provides a set of high-performance sampling algorithms for a wide range of statistical distributions. Jaxampler is designed to be easy to use and integrate with existing JAX workflows. It is also designed to be extensible, allowing users to easily add new sampling algorithms and statistical distributions.
Jaxampler is currently in the early stages of development and is not yet ready for production use. However, we welcome contributions from the community to help us improve the library. If you are interested in contributing, please refer to our contribution guidelines.
Features
- 🚀 High-Performance Sampling: Leverage the power of JAX for high-speed, accurate sampling.
- 🧩 Versatile Algorithms: A wide range of sampling methods to suit various applications.
- 🔗 Easy Integration: Seamlessly integrates with existing JAX workflows.
Install
You may install the latest released version of Jaxampler through pip by doing
pip3 install --upgrade jaxampler
You may install the bleeding edge version by cloning this repo, or doing
pip3 install --upgrade git+https://github.com/Qazalbash/jaxampler
If you would like to take advantage of CUDA, you will additionally need to install a specific version of JAX by doing
pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
Requirements
Jaxampler requires Python 3.10 or later. It also requires the following packages:
jax>=0.4.0
jaxlib>=0.4.0
typing_extensions>=4.5.0
jaxtyping>=0.2.24
matplotlib>=3.8.0
tfp-nightly
tqdm
The test suite is based on pytest. To run the tests, one needs to install pytest and run pytest at the root
directory of this repo.
Algorithms and Distributions
Jaxampler currently supports the following algorithms and distributions:
Monte Carlo Methods
- Hamiltonian Monte Carlo
- Importance Sampling
- Metropolis Adjusted Langevin Algorithm
- Monte Carlo Box Integration
- Monte Carlo Integration
- Multiple-Try Metropolis
- Sequential Monte Carlo
- Variational Inference
- Wang-Landau Sampling
- Worm Algorithm
Samplers
- Accept-Rejection Sampler
- Adaptive Accept-Rejection Sampler
- Gibbs Sampler
- Hastings Sampler
- Inverse Transform Sampler
- Metropolis-Hastings Sampler
- Slice Sampler
Random Variables
- Bernoulli
- Beta
- Binomial
- Boltzmann
- Cauchy
- Chi
- Exponential
- Gamma
- Geometric
- Gumbel
- Laplace
- Log Normal
- Logistic
- Multivariate Normal
- Normal
- Pareto
- Poisson
- Rademacher
- Rayleigh
- Student t
- Triangular
- Truncated Normal
- Truncated Power Law
- Uniform
- Weibull
Citing Jaxampler
To cite this repository:
@software{jaxampler2023github,
author = {Meesum Qazalbash},
title = {{Jaxampler}: A JAX-based statistical sampling toolkit},
url = {https://github.com/Qazalbash/jaxampler},
version = {0.0.7},
year = {2023}
}
Contributors
Metadata
Release files for jaxampler 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jaxampler-0.0.7.tar.gz | 31.9 kB | Without provenance | Details for jaxampler-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jaxampler-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for jaxampler-0.0.7-py3-none-any.whl |
Total release size: 105.0 kB
Release files / jaxampler-0.0.7.tar.gz
| Download URL | jaxampler-0.0.7.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7552218f78b24e601bee76b83798cccf2feaa5c82d85af176e1b5fe3039728e9
|
|
BLAKE2b-256 checksum How to use checksums |
507f7334f0a5b64d3368a5c139218c237e287ae1d66d3e9c620af51fd0c76947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / jaxampler-0.0.7-py3-none-any.whl
| Download URL | jaxampler-0.0.7-py3-none-any.whl |
|---|---|
| Size | 73.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
edd0f685fcbd966f2d4083519561397565eab5a1218065cafdd4c17ad0669203
|
|
BLAKE2b-256 checksum How to use checksums |
cfa33da4ca39f12bd581e01ce3403f06b7e6be5a3068a058cc5d335ef8198709
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for jaxampler 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.