bayinx 0.2.9__py3-none-any.whl → 0.2.10__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.
@@ -89,6 +89,7 @@ class Variational(eqx.Module):
89
89
  max_iters: int,
90
90
  data: Any = None,
91
91
  learning_rate: float = 1,
92
+ weight_decay: float = 1e-4,
92
93
  tolerance: float = 1e-4,
93
94
  var_draws: int = 1,
94
95
  key: Key = jr.PRNGKey(0),
@@ -114,7 +115,7 @@ class Variational(eqx.Module):
114
115
 
115
116
  # Initialize optimizer
116
117
  optim: GradientTransformation = opx.chain(
117
- opx.scale(-1.0), opx.nadam(schedule)
118
+ opx.scale(-1.0), opx.nadamw(schedule,weight_decay=weight_decay)
118
119
  )
119
120
  opt_state: OptState = optim.init(dyn)
120
121
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bayinx
3
- Version: 0.2.9
3
+ Version: 0.2.10
4
4
  Summary: Bayesian Inference with JAX
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: equinox>=0.11.12
@@ -4,7 +4,7 @@ bayinx/core/__init__.py,sha256=7vW2F8t3K4TWlSu5nZrYCdUrz5N9FMIfQQBn3IoeH6o,150
4
4
  bayinx/core/flow.py,sha256=oZE0OHCninIHjp-WVLFWd1DaN0-qXxNWFAUAdgIDmRU,2423
5
5
  bayinx/core/model.py,sha256=-rT3NHjxqGB0lDBMi0Mr9XNOz1_TUnJWtd4ITj0rsus,2257
6
6
  bayinx/core/utils.py,sha256=-YewhqzMFL3GJEjVdm3LgaZyHwDs9IVYllU9wAXZrtw,1859
7
- bayinx/core/variational.py,sha256=yhraTVlNOJaU1NEYVrWpUXVzzWvY1Mq9ZOZv6V0_Vo0,5183
7
+ bayinx/core/variational.py,sha256=3CsDyQkq1XgV2ZBLzGrm5XgUFoJBnT6glHDgxHNcbTc,5250
8
8
  bayinx/dists/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  bayinx/dists/bernoulli.py,sha256=xMV9BgtVX_1XkPdZ43q0meMIEkgMyuUPx--dyo6_DKs,1006
10
10
  bayinx/dists/binomial.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -21,6 +21,6 @@ bayinx/mhx/vi/flows/affine.py,sha256=a205nNx6KRvOwGlnjI6YeDo7OTWPPIxffGZfAcTecNA
21
21
  bayinx/mhx/vi/flows/planar.py,sha256=0BGdMm-GpTCJnxq9cOrgLl8IsHgGIL0eSFagWJNVdqQ,1944
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.9.dist-info/METADATA,sha256=xp6L_DdXPC-TMHV4SL5LdIuhzX8GizUlx2muMgSFcy0,3057
25
- bayinx-0.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
- bayinx-0.2.9.dist-info/RECORD,,
24
+ bayinx-0.2.10.dist-info/METADATA,sha256=7Ej3pWMyQr0xLMmWb1WPhRDyxIQHiJ2sNfbTHkCCJ-E,3058
25
+ bayinx-0.2.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ bayinx-0.2.10.dist-info/RECORD,,