Running TARP with BNRE and MCMC #1319
-
Hi there! I have been trying use TARP to evaluate the performance of the inferences obtained using the implemented BNRE algorithm in this package. To be able to directly compare it as close as possible to some work that I've done in the past, I'd like to perform all the inferences using HMC. Thus, after training the estimator, I'm trying to run TARP with the following code:
But I get the following error:
I've tried to look in the documentation and the source code, but I am still not sure how to solve this. Does anyone have any suggestions? Thank you in advance, and I hope you're having a great day! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
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:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Another workaround would be using the internal Lines 62 to 83 in 4b3d409 The only difference would be that you pass the We will expose the I hope this helps! |
Beta Was this translation helpful? Give feedback.
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:
Hope this helps!
Michael