Skip to content

Commit 0a8cc00

Browse files
rloufbrandonwillard
authored andcommitted
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

File tree

2 files changed

+468
-317
lines changed

2 files changed

+468
-317
lines changed

0 commit comments

Comments
 (0)