Skip to content

MCMC in parallel with different datasets #139

Answered by junpenglao
jeremiecoullon asked this question in Q&A
Discussion options

You must be logged in to vote

Yes this should be possible with vmapping the inference/sampling routine, something like:

# define a function that runs inference on 1 dataset:
@jax.vmap
def run_inference(dataset):
   ...

the kernel building will encapsulate within the run_inference function

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeremiecoullon
Comment options

Answer selected by jeremiecoullon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants