Implementation of the Lévy alpha-stable distributions for Jax.
Project description
Levy-stable-jax
Implementation of the Lévy-stable distributions for the Jax framework.
The Lévy-stable distribution is a generalization of the Normal, Cauchy and Lévy distributions. It enjoys many appealing properties, but it has no known closed-form solutions.
This package provides an implementation using the Jax framework. With this package, you can use this distribution with all AI frameworks based on Jax. In particular, you can use Lévy-stable distributions in Bayesian inference
frameworks such as numpyro
or PyMC
.
This implementation is optimized for speed and ease of use with Jax. It uses the scipy implementation as a reference.
It also includes various experimental methods for fitting Lévy-stable distributions. These should be considered experimental, both in API and in functionality.
Current limitations
-
values of alpha are only supported in the range (1.01 - 2). This code may work for lower values of alpha but it has not been tested.
-
only one parametrization (Nolan's N0 notation) is implemented. It is the more stable parametrization for numerical computations.
Commands (development only)
Setting up the test environment
pip install .[dev]
make lint
make test
poetry build
poetry publish
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
Built Distribution
File details
Details for the file levy_stable_jax-0.2.1.tar.gz
.
File metadata
- Download URL: levy_stable_jax-0.2.1.tar.gz
- Upload date:
- Size: 5.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ccc3c207917bbd665b593fcde586a8cb6b37f4b22f90db1b3a16af56eab79f7 |
|
MD5 | 3b580de0a0bf81271aea81e6092aa045 |
|
BLAKE2b-256 | abfabf84615a5c410b3b1e7ee5a53033162996bb30cec5801ada1963a8718a01 |
File details
Details for the file levy_stable_jax-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: levy_stable_jax-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 010606c896e3b6f74ce358d9c37bf29d18ba41c774104f475ff143d3b6ce2a8d |
|
MD5 | 6ffb535829b4fde3b2b58295a9bddb31 |
|
BLAKE2b-256 | daffd4458c4530ecbc556a1931f8c43ac3f68d35d03a5179c984a06f9e619bf8 |