bayinx 0.2.26__py3-none-any.whl → 0.2.27__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.
@@ -43,7 +43,7 @@ class FullAffine(Flow):
|
|
43
43
|
diag: Array = jnp.exp(jnp.diag(params['scale']))
|
44
44
|
|
45
45
|
# Fill diagonal
|
46
|
-
params['scale'] = jnp.fill_diagonal(params['scale'], diag)
|
46
|
+
params['scale'] = jnp.fill_diagonal(params['scale'], diag, inplace=False)
|
47
47
|
|
48
48
|
|
49
49
|
return params
|
@@ -52,7 +52,7 @@ class FullAffine(Flow):
|
|
52
52
|
|
53
53
|
@eqx.filter_jit
|
54
54
|
def forward(self, draws: Array) -> Array:
|
55
|
-
params = self.
|
55
|
+
params = self.transform_pars()
|
56
56
|
|
57
57
|
# Extract parameters
|
58
58
|
shift: Array = params["shift"]
|
@@ -66,7 +66,7 @@ class FullAffine(Flow):
|
|
66
66
|
@eqx.filter_jit
|
67
67
|
@partial(jax.vmap, in_axes=(None, 0))
|
68
68
|
def adjust_density(self, draws: Array) -> Tuple[Scalar, Array]:
|
69
|
-
params = self.
|
69
|
+
params = self.transform_pars()
|
70
70
|
|
71
71
|
# Extract parameters
|
72
72
|
shift: Array = params["shift"]
|
@@ -19,10 +19,10 @@ bayinx/mhx/vi/meanfield.py,sha256=LNLwfjKO9os7YBmRBpGEiFxlxonuN7DHVFEmXV3hvfI,38
|
|
19
19
|
bayinx/mhx/vi/normalizing_flow.py,sha256=nj7bpIoMJl6GTOXPxQCAsPArchbHd5vwwqMm3cLbMII,4791
|
20
20
|
bayinx/mhx/vi/standard.py,sha256=HaJsIz70Qo1Ql2hMQ-GQhcnfWiOGtyxgkOsm_yQaDKI,1718
|
21
21
|
bayinx/mhx/vi/flows/__init__.py,sha256=Hn0Wqvvyv8Vr-mFmimwgNKCByxj-fjrlIvdR7tUSolg,180
|
22
|
-
bayinx/mhx/vi/flows/fullaffine.py,sha256=
|
22
|
+
bayinx/mhx/vi/flows/fullaffine.py,sha256=nXcPTZ_GSxIg7tmVxag694Fl1F95SKFSyDyt-9EDC9I,2049
|
23
23
|
bayinx/mhx/vi/flows/planar.py,sha256=u9ZVwEeOv4fMfwiORlseCz463atsWMuid_9crRg05Z8,1919
|
24
24
|
bayinx/mhx/vi/flows/radial.py,sha256=c-SWybGn_jmgBQk9ZMQ5uHKPzcdhowNp8MD8t1-8VZM,2501
|
25
25
|
bayinx/mhx/vi/flows/sylvester.py,sha256=ppK0BmS_ThvrCEhJiP_-p-kj67TQHSlU_RUZpDbIhsQ,469
|
26
|
-
bayinx-0.2.
|
27
|
-
bayinx-0.2.
|
28
|
-
bayinx-0.2.
|
26
|
+
bayinx-0.2.27.dist-info/METADATA,sha256=5RPhGKmb6wWJquxrUlyt6QXWTSPEQycu5nFVZmQN9bU,3058
|
27
|
+
bayinx-0.2.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
bayinx-0.2.27.dist-info/RECORD,,
|
File without changes
|