Replies: 1 comment 2 replies
-
pinging our MCLMC ninja @reubenharry |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thanks for the nice package, and also for the implementation of MCLMC.
I'm currently trying to sample a very large problem using the mclmc sampler that has two different types of parameters, the initial condition volume ~O(10^6) and two other parameters which are just scalars. My original code was written for numpyro and now I'm trying to call BlackJax's MCLMC sampler following the instructions https://num.pyro.ai/en/latest/tutorials/other_samplers.html
and here https://blackjax-devs.github.io/sampling-book/algorithms/mclmc.html
I have a few very basic questions and I'm wondering if anyone can give me some hints:
Suppose I want to start my chains from the "truth". After I do
blackjax.mclmc_find_L_and_step_size
, and look atblackjax_state_after_tuning
, it looks very different from the what was fed in asinitial_state
( to the point that it looks like its picking a random point from the prior). This is presumably because in the process of determiningL
andstep_size,
it made wrong steps (with inappropriate choices ofL
andstep_size
) that lead to divergence. Is there any way to avoid this from happening or do I have to manually search for those tuning parameters that give reasonable posteriors (it seems like a lot of fine tuning)?Suppose I do find the correct
L
andstep_size
from trial and error. How critical is it to useblackjax_state_after_tuning
for theinitial_state
argument inblackjax.util.run_inference_algorithm
? Can I just use the predetermined values forL
andstep_size
and feed in the actual initial state instead?When I look at the chains, the way they move is very different from what I'm familiar with (such as NUTS) -- they look like they are traveling along some trajectory instead of jumping around. Is this expected? or is this just an consequence of bad choice of
L
andstep_size
?Appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions