bayinx 0.2.9__tar.gz → 0.2.10__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.9 → bayinx-0.2.10}/PKG-INFO +1 -1
- {bayinx-0.2.9 → bayinx-0.2.10}/pyproject.toml +1 -1
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/core/variational.py +2 -1
- {bayinx-0.2.9 → bayinx-0.2.10}/.github/workflows/release_and_publish.yml +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/.gitignore +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/README.md +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/__init__.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/core/__init__.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/core/flow.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/core/model.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/core/utils.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/dists/__init__.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/dists/bernoulli.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/dists/binomial.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/dists/gamma.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/dists/gamma2.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/dists/normal.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/__init__.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/__init__.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/flows/__init__.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/flows/affine.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/flows/planar.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/flows/radial.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/flows/sylvester.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/meanfield.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/normalizing_flow.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/mhx/vi/standard.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/src/bayinx/py.typed +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/tests/__init__.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/tests/test_variational.py +0 -0
- {bayinx-0.2.9 → bayinx-0.2.10}/uv.lock +0 -0
@@ -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.
|
118
|
+
opx.scale(-1.0), opx.nadamw(schedule,weight_decay=weight_decay)
|
118
119
|
)
|
119
120
|
opt_state: OptState = optim.init(dyn)
|
120
121
|
|
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
|
File without changes
|