Skip to content

Commit

Permalink
Add missing mass matrix in missing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-mendoza committed Sep 1, 2024
1 parent d04b7a2 commit a61af36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/mcmc/test_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ def test_mala(self):
@chex.all_variants(with_pmap=False)
def test_barker(self):
inference_algorithm = blackjax.barker_proposal(
self.normal_logprob, step_size=1.5
self.normal_logprob, step_size=1.5, inverse_mass_matrix=jnp.eye(1)
)
initial_state = inference_algorithm.init(jnp.array(1.0))
self.univariate_normal_test_case(
Expand Down Expand Up @@ -926,7 +926,7 @@ def test_barker(self):
},
{
"algorithm": blackjax.barker_proposal,
"parameters": {"step_size": 0.5},
"parameters": {"step_size": 0.5, "inverse_mass_matrix": jnp.eye(2)},
"is_mass_matrix_diagonal": None,
},
]
Expand Down

0 comments on commit a61af36

Please sign in to comment.