Skip to content

Commit

Permalink
RESOLVE MYPY ISSUE
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenharry committed May 27, 2024
1 parent f4e8064 commit 40b5b98
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions blackjax/adaptation/mclmc_adaptation.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,6 @@ def L_step_size_adaptation(state, params, num_steps, rng_key):
if diagonal_preconditioning:
params = params._replace(sqrt_diag_cov=jnp.sqrt(variances))

# state = jax.lax.scan(step, init= state, xs= jnp.ones(steps), length= steps)[0]
# dyn, _, hyp, adap, kalman_state = state
# TODO ^

initial_da, update_da, final_da = dual_averaging_adaptation(target=target)
(
(state, params, (dual_avg_state, step_size_max), (_, average)),
Expand Down
1 change: 0 additions & 1 deletion blackjax/mcmc/adjusted_mclmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def init(position: ArrayLikeTree, logdensity_fn: Callable, random_generator_arg:
return DynamicHMCState(position, logdensity, logdensity_grad, random_generator_arg)


# TODO: no default for sqrt_diag_cov
def build_kernel(
integration_steps_fn,
integrator: Callable = integrators.isokinetic_mclachlan,
Expand Down

0 comments on commit 40b5b98

Please sign in to comment.