Skip to main content

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

levy_stable_jax-0.2.0.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

levy_stable_jax-0.2.0-py3-none-any.whl (5.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: levy_stable_jax-0.2.0.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-27-generic

File hashes

Hashes for levy_stable_jax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b36e5f9fe6b917c09864506fbb47d07ad6b67d5384807d162553cb99faf3cf2c
MD5 b50cbd43087d0c567667edeaebb18ac5
BLAKE2b-256 b5ae7660c09b5620b1fa20f682179005a49493776c1755985e2e4f285f7e3783

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: levy_stable_jax-0.2.0-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-27-generic

File hashes

Hashes for levy_stable_jax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb94d3ec1d3077277ae347be1eba351aa912fc5606d4988c7857b9b65bf7141d
MD5 53660d0d6c4b515763405bf131f81b69
BLAKE2b-256 93c9b013a54ee7eb3c41eb63cdc3bebf0a7f537d61f44ac3ad5a9a9506e30e87

See more details on using hashes here.

Provenance

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