Skip to content

Commit 28c2571

Browse files
committed
Rename sample_laplace to sample_laplace_posterior
1 parent 82d8b24 commit 28c2571

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_laplace.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from pymc_extras.inference.laplace import (
2424
fit_laplace,
2525
fit_mvn_to_MAP,
26-
sample_laplace,
26+
sample_laplace_posterior,
2727
)
2828

2929

@@ -143,7 +143,9 @@ def test_fit_laplace_coords(rng, transform_samples, mode):
143143
transform_samples=transform_samples,
144144
)
145145

146-
idata = sample_laplace(mu=mu, H_inv=H_inv, model=model, transform_samples=transform_samples)
146+
idata = sample_laplace_posterior(
147+
mu=mu, H_inv=H_inv, model=model, transform_samples=transform_samples
148+
)
147149

148150
np.testing.assert_allclose(np.mean(idata.posterior.mu, axis=1), np.full((2, 3), 3), atol=0.5)
149151
np.testing.assert_allclose(

0 commit comments

Comments
 (0)