bayinx 0.2.13__tar.gz → 0.2.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bayinx-0.2.13 → bayinx-0.2.18}/PKG-INFO +1 -1
- {bayinx-0.2.13 → bayinx-0.2.18}/pyproject.toml +1 -1
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/normalizing_flow.py +0 -3
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/standard.py +1 -1
- {bayinx-0.2.13 → bayinx-0.2.18}/.github/workflows/release_and_publish.yml +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/.gitignore +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/README.md +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/__init__.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/core/__init__.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/core/flow.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/core/model.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/core/utils.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/core/variational.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/dists/__init__.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/dists/bernoulli.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/dists/binomial.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/dists/gamma.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/dists/gamma2.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/dists/normal.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/__init__.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/__init__.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/flows/__init__.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/flows/fullaffine.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/flows/planar.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/flows/radial.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/flows/sylvester.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/mhx/vi/meanfield.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/src/bayinx/py.typed +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/tests/__init__.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/tests/test_variational.py +0 -0
- {bayinx-0.2.13 → bayinx-0.2.18}/uv.lock +0 -0
@@ -1,8 +1,6 @@
|
|
1
|
-
from functools import partial
|
2
1
|
from typing import Any, Callable, Self, Tuple
|
3
2
|
|
4
3
|
import equinox as eqx
|
5
|
-
import jax
|
6
4
|
import jax.flatten_util as jfu
|
7
5
|
import jax.numpy as jnp
|
8
6
|
import jax.random as jr
|
@@ -61,7 +59,6 @@ class NormalizingFlow(Variational):
|
|
61
59
|
return draws
|
62
60
|
|
63
61
|
@eqx.filter_jit
|
64
|
-
@partial(jax.vmap, in_axes=(None, 0))
|
65
62
|
def eval(self, draws: Array) -> Array:
|
66
63
|
# Evaluate base density
|
67
64
|
variational_evals: Array = self.base.eval(draws)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|