Skip to content

Commit

Permalink
update run_inference_algorithm (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenharry authored Aug 14, 2024
1 parent b5caf35 commit 47ca288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/algorithms/mclmc.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def run_mclmc(logdensity_fn, num_steps, initial_position, key, transform):
)
# run the sampler
_, samples, _ = blackjax.util.run_inference_algorithm(
_, samples = blackjax.util.run_inference_algorithm(
rng_key=run_key,
initial_state=blackjax_state_after_tuning,
inference_algorithm=sampling_alg,
Expand All @@ -122,7 +122,7 @@ samples = run_mclmc(
num_steps=1000,
initial_position=jnp.ones((1000,)),
key=sample_key,
transform=lambda x: x.position[:2],
transform=lambda state, info: state.position[:2],
)
samples.mean()
```
Expand Down

0 comments on commit 47ca288

Please sign in to comment.