swyft icon indicating copy to clipboard operation
swyft copied to clipboard

support dependent priors

Open bkmi opened this issue 4 years ago • 2 comments

This is done within dynesty in the following manner: https://dynesty.readthedocs.io/en/latest/quickstart.html#example-conditional-priors

It's a bit more complicated for us to do this because we have to consider marginalizing over them.

bkmi avatar Oct 05 '21 09:10 bkmi

For inspiration, consider the dynesty implementation of Priors.

We need to be able to collect several distributions together for a prior, including dependent ones... but still have access to cdf, icdf, and log_prob at a minimum.

bkmi avatar Oct 05 '21 09:10 bkmi

One option is to require that new distributions subclass pytorch distribution, but that seems a bit excessive to me.

bkmi avatar Oct 05 '21 09:10 bkmi

In v0.4 hierarchical models with dependent priors can be straightforwardly implemented.

cweniger avatar May 13 '23 19:05 cweniger