Skip to content

Commit

Permalink
fix test to not use _barker_sample_nd
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Oct 2, 2024
1 parent 02e9cb9 commit 230ff26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/mcmc/test_barker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import blackjax
from blackjax.mcmc import metrics
from blackjax.mcmc.barker import _barker_pdf, _barker_sample_nd
from blackjax.mcmc.barker import _barker_pdf, _barker_sample
from blackjax.util import run_inference_algorithm


Expand All @@ -27,7 +27,7 @@ def test_nd(self, seed):

metric = metrics.default_metric(jnp.eye(4))
keys = jax.random.split(key, n_samples)
samples = jax.vmap(lambda k: _barker_sample_nd(k, m, a, scale, metric))(keys)
samples = jax.vmap(lambda k: _barker_sample(k, m, a, scale, metric))(keys)
# Check that the emprical mean and the mean computed as sum(x * p(x) dx) are close
_test_samples_vs_pdf(samples, lambda x: _barker_pdf(x, m, a, scale))

Expand Down

0 comments on commit 230ff26

Please sign in to comment.