This repository was archived by the owner on Nov 17, 2025. It is now read-only.
Commit 0a8cc00
Build samplers using the model graph as an input
The current sampler constructors are not easily generalizable as they
take as inputs parameters that are specific to the model the posterior
distribution of which we want to sample from.
Therefore in this PR we standardize the sampler constructors which now
both take as input the model graph, the observed data and the number of
samples. We use simple pattern matching to check that the input model
matches the model that the sampler is designed to sample from.1 parent 76131af commit 0a8cc00
2 files changed
+468
-317
lines changed
0 commit comments