bayinx 0.2.13__py3-none-any.whl → 0.2.18__py3-none-any.whl

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.
@@ -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)
bayinx/mhx/vi/standard.py CHANGED
@@ -52,7 +52,7 @@ class Standard(Variational):
52
52
  x=draws,
53
53
  mu=jnp.array(0.0),
54
54
  sigma=jnp.array(1.0),
55
- ).sum(axis=1)
55
+ ).sum(axis=1, keepdims=True)
56
56
 
57
57
  @eqx.filter_jit
58
58
  def filter_spec(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bayinx
3
- Version: 0.2.13
3
+ Version: 0.2.18
4
4
  Summary: Bayesian Inference with JAX
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: equinox>=0.11.12
@@ -14,13 +14,13 @@ bayinx/dists/normal.py,sha256=OOKg46y5hHFP76ydbRjEXaDkgefZcj9sd0XAl7yokww,2587
14
14
  bayinx/mhx/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
15
15
  bayinx/mhx/vi/__init__.py,sha256=YfkXKsqo9Dk_AmQGjZKm4vfG8eLer2ez92G-cOExphs,193
16
16
  bayinx/mhx/vi/meanfield.py,sha256=LNLwfjKO9os7YBmRBpGEiFxlxonuN7DHVFEmXV3hvfI,3876
17
- bayinx/mhx/vi/normalizing_flow.py,sha256=O9U40Z7ANAh4Weqs7jaNHqmG5UkdlNooUP8Vx1u7hwg,4873
18
- bayinx/mhx/vi/standard.py,sha256=m5gtcHfrYzV28h-Red3Zn6SxEgJlndeIXiIG5gDPecU,1703
17
+ bayinx/mhx/vi/normalizing_flow.py,sha256=XBUWYZpm_Ipi6X9oTnGhqIs3ARY-5QFiuxM7uAWFRps,4790
18
+ bayinx/mhx/vi/standard.py,sha256=HaJsIz70Qo1Ql2hMQ-GQhcnfWiOGtyxgkOsm_yQaDKI,1718
19
19
  bayinx/mhx/vi/flows/__init__.py,sha256=Hn0Wqvvyv8Vr-mFmimwgNKCByxj-fjrlIvdR7tUSolg,180
20
20
  bayinx/mhx/vi/flows/fullaffine.py,sha256=2QbOtA1Jmu-yRcJeFmCKc8N1atm8G7JXYMLEZaEXKV0,1711
21
21
  bayinx/mhx/vi/flows/planar.py,sha256=qmtWpIBXRct2seI78pkmtF0X7cASUBELqmZmf2QS5Gs,1918
22
22
  bayinx/mhx/vi/flows/radial.py,sha256=c-SWybGn_jmgBQk9ZMQ5uHKPzcdhowNp8MD8t1-8VZM,2501
23
23
  bayinx/mhx/vi/flows/sylvester.py,sha256=ppK0BmS_ThvrCEhJiP_-p-kj67TQHSlU_RUZpDbIhsQ,469
24
- bayinx-0.2.13.dist-info/METADATA,sha256=3Do4je5M1N3-DKmo0tG1a0ULG91ECcCQe-B60E-EuPA,3058
25
- bayinx-0.2.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
- bayinx-0.2.13.dist-info/RECORD,,
24
+ bayinx-0.2.18.dist-info/METADATA,sha256=849aiZhV6f578GKb62AfN_YgIoyJZ7FfA-fYw-Ogk_0,3058
25
+ bayinx-0.2.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ bayinx-0.2.18.dist-info/RECORD,,