Lots of rejections samplers... any ideas? #5028
Unanswered
SamDuffield
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement a fairly involved method to sample from a joint distribution based on chained rejection samplers .
In theory there should be a significant performance increase for a large number of samples over the much simpler full resampling method, however in current JAX implementation below I am not seeing this.
The end product (I've posted a simpler version below) actually runs this method over many dimensions and gets placed within a higher scan, this is where I am seeing particularly poor performance.
Some comments on the implementation:
I realise this sort of algorithm isn't particularly well suited to JAX's control flow, but just thought I'd ask if anyone had any ideas for performance enhancements?
Beta Was this translation helpful? Give feedback.
All reactions