Skip to content

Running TARP with BNRE and MCMC #1319

Discussion options

You must be logged in to vote

Hi there! Thanks for reporting!

The reason you are seeing this is that we use sample_batched() within TARP to vectorize across observations, which makes the diagnostic tool much faster. However, not all samplers support vectorized sampling (e.g., HMC), which is why it breaks.

If there is a possibility to do so, I would recommend you to switch to our slice-sampler for MCMC, for several reasons:

  1. We found it to be very reliable
  2. It will not give this bug :)
  3. Even if we fix the bug by looping over observations with HMC, it will be much (at least an order of magnitude) slower than the vectorized slice samplers.

Hope this helps!
Michael

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@diego-gonher
Comment options

Answer selected by diego-gonher
Comment options

You must be logged in to vote
4 replies
@janfb
Comment options

janfb Dec 3, 2024
Maintainer

@diego-gonher
Comment options

@janfb
Comment options

janfb Dec 4, 2024
Maintainer

@diego-gonher
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
3 participants