Skip to content

Barker proposal #723

Answered by AdrienCorenflos
jecampagne asked this question in Q&A
Aug 21, 2024 · 2 comments · 13 replies
Discussion options

You must be logged in to vote

Well, I'd argue their implementation follows ours based on timelines :D, it looks similar but I can't (don't have time) to comment on the specifics.

As a design rule, we do not implement warm up/adaptation as part of kernels, but as outer utilities, so the answer is neither. Looking at their code, they use HMC adaptation, so you can also do this here with very little trouble:

I'm rather sure that if you change nuts for barker below, it will just work

warmup = blackjax.window_adaptation(blackjax.nuts, joint_logdensity)

# we use 4 chains for sampling
n_chains = 4
rng_key, init_key, warmup_key = jax.random.split(rng_key, 3)
init_keys = jax.random.split(init_key, n_chains)
init_params = jax.v…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
10 replies
@ismael-mendoza
Comment options

@AdrienCorenflos
Comment options

@AdrienCorenflos
Comment options

@ismael-mendoza
Comment options

@ismael-mendoza
Comment options

Answer selected by jecampagne
Comment options

You must be logged in to vote
3 replies
@AdrienCorenflos
Comment options

@jecampagne
Comment options

@AdrienCorenflos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants