Skip to content

Commit

Permalink
Change variable names (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksnxr committed Apr 1, 2024
1 parent f77297f commit 7cf4f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blackjax/mcmc/mala.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def build_kernel():
def transition_energy(state, new_state, step_size):
"""Transition energy to go from `state` to `new_state`"""
theta = jax.tree_util.tree_map(
lambda new_x, x, g: new_x - x - step_size * g,
lambda x, new_x, g: x - new_x - step_size * g,
state.position,
new_state.position,
new_state.logdensity_grad,
Expand Down

0 comments on commit 7cf4f9d

Please sign in to comment.