Probability distributions for JAX
Project description
PJAX
Do you just want probability distributions for JAX without all the added baggage of tensorflow-probability or numpyro?
Do you have some weird distribution not available in the above or scipy.stats?
Then PJAX is for you. Lightweight probability distributions using JAX backend. That's it.
import jax
import jax.numpy as jnp
from pjax import distributions
a = jnp.asarray([4.3, 0.8])
b = jnp.asarray([1.2, 7.3])
dist = distributions.Gamma(a, b)
x = jnp.asarray([0.4, 0.5, 0.6, 0.7])
dist.log_pdf(x)
key = jax.random.PRNGKey(42)
dist.sample(key, shape=(100,))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pjax-0.0.2.tar.gz.
File metadata
- Download URL: pjax-0.0.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be1498b5df2338bb7011298854e853d61077dac46238e07aa4649a2e0d72adc1
|
|
| MD5 |
62af7af9456ed1a570109d968bd17ef6
|
|
| BLAKE2b-256 |
885532d32201c29578a3e82eb17fc748bd14aea9de1f98f00cc2deaed7462a8e
|
File details
Details for the file pjax-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pjax-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21d7cc3ee3b2d92f5f82ce13015445a15b03ed6df76bec0f25d4902e5c11e893
|
|
| MD5 |
b4a0d887afbb5d7c7ff257027194a160
|
|
| BLAKE2b-256 |
b13505ebd88d7a4f07f6e47a7a717a1beac2bf623b85326311aa9e22f148b445
|