Skip to content

Commit

Permalink
UPDATE TUNING
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenharry committed Jun 11, 2024
1 parent 1ef4c95 commit 7e21f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blackjax/adaptation/adjusted_mclmc_adaptation.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,6 @@ def step(state, key):
flat_samples = jax.vmap(lambda x: ravel_pytree(x)[0])(samples)
ess = effective_sample_size(flat_samples[None, ...])

return state, params._replace(L=(0.4 * params.L) / ess)
return state, params._replace(L=(0.4 * params.L) / jnp.mean(ess))

return adaptation_L

0 comments on commit 7e21f43

Please sign in to comment.