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.1.1.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for levy_stable_jax-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a5a6fe8030c456adc4da23b59485ef2cbb0aac9aac3799f5d5ea293496a11ab9
MD5 0db17b9f14d7ebbd284ffd2a8a3525ba
BLAKE2b-256 e256eff990fffa5b2b787e000c26ca64eb40c7a1435c0e8a8f2e2daa8732e773

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for levy_stable_jax-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a8b83733d22aace98ab570bc77ba6f8c4d17ff2257577c59d6d14a3ec29408b
MD5 14b99b581d6980b02bad3a790d8f5db1
BLAKE2b-256 419c971a9b4bff7df6d07a256ecf8c08499f62115a13dbb5d92dd94819a9e2b9

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