Skip to content

Commit

Permalink
Build samplers using the model graph as an input
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rlouf authored and brandonwillard committed Apr 12, 2022
1 parent 76131af commit 0a8cc00
Show file tree
Hide file tree
Showing 2 changed files with 468 additions and 317 deletions.
Loading

0 comments on commit 0a8cc00

Please sign in to comment.