Skip to content
Discussion options

You must be logged in to vote

It was simple to get it. Mentioning it here in case someone is not able to figure it out:

Refer to the example provided on the blackjax site for window adaptation based on stan. To obtain the adaptation info (warmup samples) modify the code as follows:

warmup = blackjax.window_adaptation(blackjax.nuts, logdensity)
(state, parameters), warmup_samples = warmup.run(rng_key, initial_position, num_steps=1000)

In the above code, the variable named warmup_samples will contain the warmup samples.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Madhav-Kanda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant